Brian Evans - Postfix List wrote:
Paul Gardiner wrote:
Hi,
I've been running postfix under SuSE now for several years. I keep
up to date with SuSE by every now and then moving everything across
to a newly installed machine (git repository for config, and rsync
for data). This time something has gone wrong which prevents
fetchmail sending to postfix. In the logs I see:
fetchmail: reading message asm...@dsl.pipex.com@pop.dsl.pipex.com:1 of 1
(2319 octets) (log message incomplete)fetchmail: SMTP error: 554 5.7.1
<p...@localhost>: Recipient address rejected: Access denied
Locally "mail paul" and "mail p...@localhost" works, which I guess goes
via postfix's sendmail command, so I guess it's a problem with local
smtp. I don't understand what has changed. My config from the previous
machine reapplied without problem.
First, you seem to have missed the welcome message:
TO REPORT A PROBLEM SEE: http://www.postfix.org/DEBUG_README.html#mail
Oh, yes I did. Sorry. I was in such a hurry. I hadn't realised quite how
much I rely on all this working flawlessly, as it has for years, until
this recent misconfiguration I must have done. Thanks for responding
so quickly.
You post a fetchmail log entry, but no Postfix ones.
A bit more clarification of what Postfix is doing may help us help you.
Ah right. I have a simpler test without using fetchmail now (
I've substituted host.domain for the from address). if I issue:
echo Test at `date` | from="nore...@host.domain" smtp="localhost"
mailx -s "Test at `date`" p...@localhost
then I get back:
smtp-server: 554 5.7.1 <p...@localhost>: Recipient address rejected:
Access denied
And in the postfix logs, I see:
Feb 5 15:12:34 glidos postfix/smtpd[15222]: connect from localhost[::1]
Feb 5 15:12:34 glidos postfix/smtpd[15222]: NOQUEUE: reject: RCPT from
localhost[::1]: 554 5.7.1 <p...@localhost>: Recipient address rejected:
Access denied; from=<nore...@host.domain> to=<p...@localhost> proto=SMTP
helo=<glidos.site>
Feb 5 15:12:34 glidos postfix/smtpd[15222]: lost connection after RCPT
from localhost[::1]
Feb 5 15:12:34 glidos postfix/smtpd[15222]: disconnect from localhost[::1]
Your master.cf does not seem to have a reentry point for a before-queue
filter either.
The before-queue filtering seems to be working: mail that comes direct,
rather than via fetchmail, is getting through ok and being scanned. And
the received messages show two headers mentioning smtp.glidos.net. I
think I have something configured in main.cf so that the first smtp
listens only on 10.0.0.5. The second one explicitly is written
localhost:smtp, so they don't conflict... or maybe I've mistunderstood
what you've pointed out. The filter listens on localhost:10025 and
outputs on localhost:25. This lets me use localhost:25 internally to
skip the filter.
Cheers,
Paul.