Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 was following the tutorial

but, when I tried to send a mail with smtp, it returns:

Connected to XXX.XXX.33.22 (XXX.XXX.33.22).
Escape character is '^]'.
220 ESMTP Postfix
250 2.1.0 Ok
554 5.7.1 <>: Relay access denied

And, the postfix setting is relay_domains =

share|improve this question

If this message is an inbound message and you have accounts setup for, if its a standard non-virtual domain setup, you need to ensure that is on your mydestination line, if it's virtual make sure you have a virtual_mailbox_domains entry, and that it points to a file/hash/database table that contains

If you're testing email outbound (ie someone on your network trying to send mail to, check that the mynetworks line contains a reference to your networks rfc1918 range (eg or or that you have enabled and are using SASL authentication.

share|improve this answer
Thanks! With the mynetworks setting all works great! – Fu86 May 18 '11 at 9:06

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.