LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-28-2009, 09:53 AM   #1
resende
LQ Newbie
 
Registered: Dec 2006
Posts: 3

Rep: Reputation: 0
Angry Sendmail Relaying Spam


Hi, I have a server hosting severall domains. I'm using sendmail version 8.13.8, config V10/Berkeley.

I am relaying e-mails that aren't from my domains and to my domains... example cutted from sendmail log:


sendmail[20144]: nASDemoR020144: from=<toastiestb65@rosebudus.com>, size=3221, class=0, nrcpts=1, msgid=<036357486.36118267127985@rosebudus.com>, proto=ESMTP, daemon=MTA, relay=dsl-189-173-130-148-dyn.prod-infinitum.com.mx [189.173.130.148] (may be forged)
sendmail[20249]: nASDpnfm020249: from=<unmanliestn5@reply.myfamilyinc.com>, size=4138, class=0, nrcpts=1, msgid=<000d01ca7031$eca1b710$6400a8c0@unmanliestn5>, proto=ESMTP, daemon=MTA, relay=localhost [222.254.153.220] (may be forged)


it's not from a user of any of my domains and the e-mail it's not for a user of any of my domains.

my m4 configuration is:

divert(-1)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`setup for linux')dnl
OSTYPE(`linux')dnl
define(`confDEF_USER_ID', ``8:12'')dnl
define(`confTO_CONNECT', `1m')dnl
define(`confTRY_NULL_MX_LIST', `True')dnl
define(`confDONT_PROBE_INTERFACES', `True')dnl
define(`PROCMAIL_MAILER_PATH', `/usr/bin/procmail')dnl
define(`ALIAS_FILE', `/etc/aliases')dnl
define(`STATUS_FILE', `/var/log/mail/statistics')dnl
define(`UUCP_MAILER_MAX',20000000)
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
define(`confAUTH_OPTIONS', `A')dnl
TRUST_AUTH_MECH(`LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `LOGIN PLAIN')dnl
define(`confQUEUE_LA', `50')dnl
define(`confREFUSE_LA', `60')dnl
define(`confTO_IDENT', `0')dnl
FEATURE(`no_default_msa', `dnl')dnl
FEATURE(`smrsh', `/usr/sbin/smrsh')dnl
FEATURE(`mailertable', `hash -o /etc/mail/mailertable.db')dnl
FEATURE(`virtusertable', `hash -o /etc/mail/virtusertable.db')dnl
FEATURE(redirect)dnl
FEATURE(always_add_domain)dnl
FEATURE(use_cw_file)dnl
FEATURE(use_ct_file)dnl
define(`confMAX_DAEMON_CHILDREN',15)
define(`confCONNECTION_RATE_THROTTLE',3)
FEATURE(local_procmail, `', `procmail -t -Y -a $h -d $u')dnl
FEATURE(`access_db', `hash -T<TMPF> -o /etc/mail/access.db')dnl
FEATURE(`blacklist_recipients')dnl
EXPOSED_USER(`root')dnl
DAEMON_OPTIONS(`Port=smtp,Addr=111.222.333.444, Name=MTA')dnl
LOCAL_DOMAIN(`localhost.localdomain')dnl
define(`confTO_INITIAL', `30s')dnl
define(`confTO_CONNECT', `30s')dnl
define(`confTO_ACONNECT', `1m')dnl
define(`confTO_ICONNECT', `30s')dnl
define(`confTO_HELO', `30s')dnl
define(`confTO_MAIL', `30s')dnl
define(`confTO_RCPT', `30s')dnl
define(`confTO_DATAINIT', `1m')dnl
define(`confTO_DATABLOCK', `1m')dnl
define(`confTO_DATAFINAL', `1m')dnl
define(`confTO_RSET', `30s')dnl
define(`confTO_QUIT', `30s')dnl
define(`confTO_MISC', `30s')dnl
define(`confTO_COMMAND', `30s')dnl
define(`confTO_CONTROL', `30s')dnl
define(`confTO_LHLO', `30s')dnl
MAILER(smtp)dnl
MAILER(procmail)dnl


Can anyone help on this ?
NOTE I HAVE CHANGED MY IP TO 111.222.333.444 on the m4 config to protect innocents

Last edited by resende; 11-28-2009 at 09:55 AM. Reason: spell
 
Old 11-28-2009, 10:16 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

Are you sure that the emails in your log snippet are actually get delivered? Because you didn't post the "to=..." part, so we can see what happened to them.
You can test your mail server, to see if it's an open relay, here.

Regards
 
Old 11-28-2009, 10:56 AM   #3
resende
LQ Newbie
 
Registered: Dec 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Wink Relay test

Thanks for the tips....

All the tests were ok!

No relay allowed.

Thanks, PR
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sendmail relaying CuriousOne Linux - Networking 1 08-05-2005 03:43 PM
Sendmail relaying linuxpyro Linux - Software 0 05-26-2004 04:05 PM
relaying in sendmail spikes57 Linux - Networking 6 02-27-2004 10:44 AM
Sendmail SPAM and relaying magyartoth Linux - General 0 05-02-2002 07:27 AM
sendmail relaying cestor Linux - General 1 01-29-2002 11:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration