Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Mail from: question

63 views
Skip to first unread message

Luuk

unread,
Apr 5, 2010, 11:49:52 AM4/5/10
to
I receive mails, from apparantly no one..

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

Kristian Domke

unread,
Apr 8, 2010, 7:22:11 AM4/8/10
to
Am 05.04.2010 17:49, schrieb Luuk:
> I receive mails, from apparantly no one..
>

is the null address not the normal sender for bounces?

Luuk

unread,
Apr 8, 2010, 1:54:32 PM4/8/10
to
Op 8-4-2010 13:22, Kristian Domke schreef:

> Am 05.04.2010 17:49, schrieb Luuk:
>> I receive mails, from apparantly no one..
>>
>
> 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

Realname x

unread,
Apr 8, 2010, 2:19:07 PM4/8/10
to
Luuk wrote:

Reject mails to unknown recipients within the SMTP session with an reply
code of 5xx.

Luuk

unread,
Apr 8, 2010, 3:15:47 PM4/8/10
to
Op 8-4-2010 20:19, Realname x schreef:

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

Realname x

unread,
Apr 8, 2010, 5:26:40 PM4/8/10
to
Luuk wrote:

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


Luuk

unread,
Apr 9, 2010, 1:35:42 PM4/9/10
to
Op 8-4-2010 23:26, Realname x schreef:

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

Realname x

unread,
Apr 9, 2010, 4:39:20 PM4/9/10
to
Luuk wrote:

> 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.

0 new messages