Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Debian installation with Mailman using exim as MTA.

I can create mailing lists and receive emails from mailinglist server. But when i try to send an email to the ML address it is refused with the following error:

H=(...) F=(user@email.dom) rejected RCPT relay not permitted

where list@mailinglist.dom is my mailing list (just for example).

I looked everywhere on google but actually none of the solution proposed help me. I'm trying to use virtual domains. The mailing list seems correctly configured (i can create them, and manage them from the web interface, and as i said above receive mail from them). The problme seems to be in Exim server configuration.

This is the tutorial that i followed: I added the folder: /etc/exim4/virtual with one file: mailinglist.dom, and it contents is:

list: list@mailinglist.dom

I modified the /etc/exim4/conf.d/main/01_exim4-configlistmacrodefs

domainlist local_domains = @:localhost:dsearch;/etc/exim4/virtual

And added the following file: /etc/exim4/conf.d/router/350_exim4-config_vdom_aliases with:

  driver = redirect
  domains = dsearch;/etc/exim4/virtual
  data = ${expand:${lookup{$local_part}lsearch*@{/etc/exim4/virtual/$domain}}}
  pipe_transport   = address_pipe
  file_transport   = address_file

this is the other tutorial that i followed:

Now i spent all day trying to solve that problem without success. Can you help me?

share|improve this question
up vote 1 down vote accepted

Finally i managed to solve that problem. Here the steps:

  1. I launched dpkg-reconfigure exim4-config
  2. I used default settings except for:
    • System mail name: I used the domain name (domain.ext format as suggested in the box)
    • Other destinations for which mail is accepted: (Here I inserted all the domains that must be treated as local domain. With the format: mail.domain.ext)

I restarted exim, and now everything works.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.