The message looks like this:
Out: 220 www.example.com
In: EHLO localhost
Out: 250-www.example.com
Out: 250-PIPELINING
Out: 250-SIZE 30960000
Out: 250-ETRN
Out: 250-ENHANCEDSTATUSCODES
Out: 250-8BITMIME
Out: 250 DSN
In: MAIL FROM:<> ENVID=AM..20100404T211712Z@www.example.com
Out: 250 2.1.0 Ok
In: RCPT TO:<de...@mail2stan.com> ORCPT=rfc822;de...@mail2stan.com
Out: 454 4.7.1 <>: Sender address rejected: Access denied
In: DATA
Out: 454 4.5.1 Error: no valid recipients
In: QUIT
Out: 221 2.0.0 Bye
Has anyone any clue what i can do to stop above messages from ending up
in my postmaster-mailbox as
"Postfix SMTP server: errors from localhost[127.0.0.1]"
Because i dont think it are server errors, but more a client who refuses
to sent his/her emailaddress ?
--
Luuk
is the null address not the normal sender for bounces?
maybe.....
But i should change my question, to:
"How can i stop postfix from sending bounces"
Tooo much of mail coming from my system are bounces of SPAM....
(i did not count ;-)
--
Luuk
Reject mails to unknown recipients within the SMTP session with an reply
code of 5xx.
would i do that with next line in main.cf:
check_recipient_access = hash:/etc/postfix/recipient_access
and in this recipient_access line(s) like:
notexisting@ REJECT
othernonexisting@ REJECT
I tried above, but mail to the account i tested with keeps getting
deliverd... (and not rejected)
--
Luuk
You can do it this way:
File /etc/postfix/main.cf:
smtpd_recipient_restrictions =
check_recipient_access hash:/etc/postfix/recipient_access
Here are further restrictions possible like "check_relay_domains"
File /etc/postfix/recipient_access:
us...@fribour.de DUNNO
us...@fribour.de DUNNO
fribour.de REJECT Unknown user
There you can find more information:
http://www.postfix.org/ADDRESS_VERIFICATION_README.html#recipient
i tried that but got following result:
Apr 8 21:02:30 opensuse postfix/smtpd[22749]: fatal: parameter
"smtpd_recipient_restrictions": specify at least one working instance
of: check_relay_domains, reject_unauth_destination, reject, defer or
defer_if_permit
For my test, i only did put 1 name in the recipient_access tables like this:
camel@ REJECT
This should REJECT all mail to ca...@mydomain.com
But i will look at the link you gave, and test more stuff this (and
next) weekend.....
Thanks!
--
Luuk
> Op 8-4-2010 23:26, Realname x schreef:
>>
>> You can do it this way:
>>
>> File /etc/postfix/main.cf:
>> smtpd_recipient_restrictions =
>> check_recipient_access hash:/etc/postfix/recipient_access
>> Here are further restrictions possible like
>> "check_relay_domains"
>>
>> File /etc/postfix/recipient_access:
>> us...@fribour.de DUNNO
>> us...@fribour.de DUNNO
>> fribour.de REJECT Unknown user
>>
>> There you can find more information:
>> http://www.postfix.org/ADDRESS_VERIFICATION_README.html#recipient
>>
>>
>
> i tried that but got following result:
>
> Apr 8 21:02:30 opensuse postfix/smtpd[22749]: fatal: parameter
> "smtpd_recipient_restrictions": specify at least one working instance
> of: check_relay_domains, reject_unauth_destination, reject, defer or
> defer_if_permit
You should do what postfix says because postfix is right.
Sorry, I didn't tell this because I thought the error message will be
understandable and I won't repeat this part of the postfix
documentation.
In addition there are different possibilities for the actions:
DUNNO, OK, REJECT and sometimes some more. In my example I used DUNNO
and REJECT.
Maybe it's better to use "OK" instead of "DUNNO".
> For my test, i only did put 1 name in the recipient_access tables like
> this:
>
> camel@ REJECT
First you should test it with complete mail addresses. If this works you
can try to drop some parts like the domain.
> This should REJECT all mail to ca...@mydomain.com
>
> But i will look at the link you gave, and test more stuff this (and
> next) weekend.....
To learn postfix you should use a reasonable book. For myself I use the
german Postfix-Buch from Ralf Hildebrandt / Patrick Ben Koetter.
Learning postfix without a book is too painful.