I am trying to setup a mail server with postfix/dovecot.
I can currently receive emails and send emails from domains that I have configured.
I have a lot of domains and my email setup is simple - all emails from every domain goes to one account.
I am trying to work out how to setup postfix so that I can send emails from any of my domains without having to set them all up explicitly as domains in the system.
Right now I get RELAY ACCESS DENIED if the from address is a domain not listed in the domains table.
I have the following two lines in main.cf :
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_relay_restrictions = permit_sasl_authenticated,permit_mynetworks,defer_unauth_destination
Which I thought would fix it, but it doesn't.
Anyone know what I am missing?
EDIT:
I am sending from a mail client (evolution)
Relevant log entries:
Jan 31 03:33:15 myserver postfix/smtpd[30117]: connect from unknown[94.xxx.xxx.xxx]
Jan 31 03:33:16 myserver postfix/smtpd[30117]: NOQUEUE: reject: RCPT from unknown[94.xxx.xxx.xxx]: 454 4.7.1 <destination@destination.com>: Relay access denied; from=<me@unconfigureddomain.com> to=<destination@destination.com> proto=ESMTP helo=<[127.0.0.1]>
Jan 31 03:33:16 myserver postfix/smtpd[30117]: lost connection after RCPT from unknown[94.xxx.xxx.xxx]
Jan 31 03:33:16 myserver postfix/smtpd[30117]: disconnect from unknown[94.xxx.xxx.xxx]