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

We have an webmail service. Now, the MX record is postfix server (configured as domain relay) that check the mail with amavis, spamassain and clamav, and after that the postfix server (or the amavis?) send the email to MailEnable server (this is another smtp server, on windows) that save the mail into folder. Now, each 10 seconds we have .net program that parse the emails into our format. What we want is to remove the step of the MailEnable. To config the postfix (or the amavis?) to save the mail into folder (with the Envelope Header!!)

Thank you!! :)

share|improve this question
What do you mean 'envelope header'? – Zoredache Dec 17 '10 at 2:24
In the mail enable i receive two files. one is the email and another is the real recepient of the email, not the "to" header. – akalter Dec 17 '10 at 2:44

What does "configured as domain relay" mean? Do you mean you have

relay_domains =


If so, you will need to remove that setting for mail to be delivered locally.

Then, if you have only one, e.g.,, etc, you should add

mydestination =

or similar to A better way is

mydomain =
mydestination = $mydomain

and you should probably add $myhostname and mail.$ too, e.g.

mydomain =
mydestination = $myhostname $mydomain mail.$mydomain

See the docs on mydestination for details.

After removing relay_domains, you may also want to double check your relaying settings. See SMTPD_ACCESS_README as a starting point.

If you have many domains and are using virtual domains, see virtual_mailbox_domains and VIRTUAL README for details.

share|improve this answer
All you wrote is how to remove the relay domain. but what do i need to do after that? One, if the server delivering locally then i dont have the envelope header. Two, where is the server saving the mails? – akalter Dec 17 '10 at 0:18

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.