[ILUG] More Postfix questions
Niall O Broin
niall at magicgoeshere.com
Sat Sep 2 01:31:57 IST 2000
OK - Postfix installed and working - ish ! It's happily receiving mails for
the relevant domains and sending but I can't get it to relay. Before I
explain the relaying I've another quickie - is it possible to modify
myorigin for virtual domains ? I currently have
myorigin = mail.wherever.com
Every mail which goes out gets a Return-Path header like:
Return-Path: <user at mail.wherever.com>
which I presume is caused by myorigin whereas I'd prefer that they have
Return-Path: <user at hisowndomain.com>
I suppose this probably violates RFC822/1123/1521/whatever although the bat
book says that this is usually the same as the From address (though I know
it's often not). Anyway, that was question 1. More important is question 2
which is how the fsck do I get relaying to work ? I have
smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination
which are the default but I put them in anyway and I have
relay_domains = whatever.com
From my understanding of the "Postfix Configuration - UCE Controls" page,
that should be what's needed to allow relaying from hosts in whatever.com.
But when I telnet to the server and try to relay mail, I get
554 <niall at online.ie>: Relay access denied
and in the maillog I see the following
Sep 1 22:57:05 penguin postfix/smtpd[18162]: connect from
unknown[123.456.162.109]
Sep 1 22:59:09 penguin postfix/smtpd[18162]: AEE7D28DBF:
client=unknown[123.456.162.109]
Sep 1 22:59:27 penguin postfix/smtpd[18162]: reject: RCPT from
unknown[123.456.162.109]: 554 <niall at online.ie>: Relay access denied;
from=<niall at magicgoeshere.com> to=<niall at online.ie>
Now 123.456.162.109 is the address of my box, and resolves to
somehost.whatever.com, so my understanding is that this host should be
allowed to relay, but it's not, as the log shows. What am I doing wrong ?
Regards,
Niall
More information about the ILUG
mailing list