Return Mail Notice

Return Mail Notice

am 09.10.2007 06:53:00 von Phil Taylor

Hi

When you receive a email on the mail server with this type of notice Oct 9
00:05:18 shell sm-mta[28005]: ruleset=check_relay, arg1=[71.113.162.178],
arg2=127.0.0.4, relay=pool [71.113.162.178] (may be forged), reject=554 5.7.1
Rejected - see http://www.spamhaus.org. 1) Does the server send a notice back
to the sender? (2) If so, how can I tell sendmail not to send these types of
email notices back to the sender please?

Here is my sendmail config


divert(-1)
#
# Copyright (c) 1998, 1999 Sendmail, Inc. and its suppliers.
# All rights reserved.
# Copyright (c) 1983 Eric P. Allman. All rights reserved.
# Copyright (c) 1988, 1993
# The Regents of the University of California. All rights reserved.
#
# By using this file, you agree to the terms and conditions set
# forth in the LICENSE file which can be found at the top level of
# the sendmail distribution.
#
#

divert(0)dnl
VERSIONID(`$Id: linux.mc,v 8.12 2002/05/24 09:06:00 sm Exp $') OSTYPE(linux)dnl
DAEMON_OPTIONS(`Addr=192.168.15.4')dnl
DOMAIN(generic)dnl
define(`confPRIVACY_FLAGS', `authwarnings,needmailhelo,noexpn,novrfy')dnl
define(`confCW_FILE', `-o /etc/mail/local-host-names')
define(`confDONT_PROBE_INTERFACES',`True')dnl
FEATURE(`mailertable')dnl
FEATURE(`access_db')
FEATURE(`relay_hosts_only')
FEATURE(`use_cw_file')
FEATURE(`blacklist_recipients')dnl FEATURE(`dnsbl',`sbl-xbl.spamhaus.org',`554
Rejected - see http://www.spamhaus.org/')dnl
FEATURE(`dnsbl',`combined.njabl.org',`554 Message from $&{client_addr} rejected
- see http://www.njabl.org/')dnl FEATURE(`dnsbl',`dnsbl.sorbs.net',`554
rejected - $&{client_addr} found in dnsbl.sorbs.net')dnl
FEATURE(`dnsbl',`bl.spamcop.net',`554 Rejected - see http://www.spamcop.net/')
dnl
FEATURE(`local_procmail')
MAILER(procmail)
MAILER(smtp)dnl

Thanks
--- Synchronet 3.14a-Win32 NewsLink 1.85
Telnet bbs.cyberchatnet.com:23 Supports Win/Linux/Mac and Os2

Re: Return Mail Notice

am 09.10.2007 15:20:56 von Scott Grayban

Phil Taylor wrote:
> Hi
>
> When you receive a email on the mail server with this type of notice Oct 9
> 00:05:18 shell sm-mta[28005]: ruleset=check_relay, arg1=[71.113.162.178],
> arg2=127.0.0.4, relay=pool [71.113.162.178] (may be forged), reject=554 5.7.1
> Rejected - see http://www.spamhaus.org. 1) Does the server send a notice back
> to the sender? (2) If so, how can I tell sendmail not to send these types of
> email notices back to the sender please?
>

Never fails to amaze me just how little IT admin know these days and yet get jobs.

....snip
FEATURE(`blacklist_recipients')dnl FEATURE(`dnsbl',`sbl-xbl.spamhaus.org',`554
Rejected - see http://www.spamhaus.org/')dnl
..../snip

That is the message that is sent back to the sending server. You can shorten
the message to just rejected but you are required by RFC to send the
rejected=554. If you don't you could get listed as a idiot.

So you could do...

FEATURE(`blacklist_recipients')dnl FEATURE(`dnsbl',`sbl-xbl.spamhaus.org',`554
Rejected')dnl

However, I still say that even removing the reason why is only going to piss
off every postmaster you *will* get hate mail for doing so.

-- Scott

Re: Return Mail Notice

am 10.10.2007 00:11:44 von per

In article <470B092C.5798.unet.sendmail@bbs.cyberchatnet.com> "Phil
Taylor" writes:
>
>When you receive a email on the mail server with this type of notice Oct 9
>00:05:18 shell sm-mta[28005]: ruleset=check_relay, arg1=[71.113.162.178],
>arg2=127.0.0.4, relay=pool [71.113.162.178] (may be forged), reject=554 5.7.1
>Rejected - see http://www.spamhaus.org. 1) Does the server send a notice back
>to the sender? (2) If so, how can I tell sendmail not to send these types of
>email notices back to the sender please?

What do you mean by "send a notice"? *Your* sendmail does *not* generate
an e-mail message (i.e. "bounce") and send it - the error text is given
in response to commands given by the remote server (i.e. 71.113.162.178)
in the SMTP session. If that is a legitimate server trying to deliver a
message, *it* will generate a "bounce" e-mail message (hopefully
including the error text) and send it to the sender. If it's a spambot,
it'll likely just drop the whole thing on the floor.

--Per Hedeland
per@hedeland.org