SLUG Mailing List Archives
Re: [SLUG] Postfix question
- To: Howard Lowndes <lannet@xxxxxxxxxxxxx>
- Subject: Re: [SLUG] Postfix question
- From: Raphael Kraus <raphael@xxxxxxxxxxxxxxxx>
- Date: Wed, 13 Jun 2007 15:21:36 +1000
- Cc: SLUG <slug@xxxxxxxxxxx>
- User-agent: Thunderbird 22.214.171.124 (Macintosh/20070509)
I think you have the wrong idea about relayhost. The relayhost parameter
in main.cf of postfix is for you to specify an external SMTP server to
send through (aka a smarthost).
Don't specify an internal host for this (unless you insist on sending
through that host). Usually the parameter would be set to your ISP's
SMTP server, or the SMTP server specified by your SPF records.
What you want to do is set up the relay_domains and transport parameters:
relay_domains = yourdomainname.com.au
transport_maps = hash:/etc/postfix/transport
in main.cf and put in /etc/postfix/transport
Again, remember to run postmap /etc/postfix/transport
Obviously you'll also have to adjust domain names and IP addresses as
http://www.postfix.org/ has wonderful documentation available. There are
also a lot of examples that you can learn from.
All the best.
Howard Lowndes wrote:
I have a Linux/Postfix server that accepts email from the Internet,
performs filtering checks on the email and then forwards acceptable
emails onto a Linux/Domino server on the local intranet.
The Postfix checks are all being done by LDAP so I am able to see what
is happening on the Linux/Postfix server.
Postfix has the relayhost parameter set in main.cf to point to the
Linux/Domino server so that emails are correctly forwarded on.
I can see the Linux/Postfix server doing all the checks that I have
specified in main.cf. These include:
However, the smtpd_recipient_restrictions appear to be failing safe
with a default DUNNO result rather than a default REJECT result. The
same checks, when not used in conjunction with a relayhost setting
appear to default fail as REJECT rather than DUNNO.
Am I right in assuming that the use of the relayhost parameter is
causing this change in default behaviour, and how is the best way to