LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-26-2003, 07:55 AM   #1
dunc
LQ Newbie
 
Registered: Apr 2003
Posts: 3

Rep: Reputation: 0
sendmail 8.12.9 relaying problem


hello everybody,

this is my first post to this forum and i hope you had a nice weekend so far. furthermore, i hope this is the right place to ask this question...

i have a problem with my sendmail 8.12.9 configuration under redhat 7.2, which means i was not able to stop the server from relaying third party mail. i use STARTTLS and SMTP AUTH for relaying mails from my roaming users, other users are only able to send to local users. but it does not seem to work, or let's say: i must have made a mistake somewhere.

here is my sendmail.my and the access.db (cleartext, but i've edited the domain name and the ip-adresses... hope you understand). perhaps i've missed something very simple, but a feel like beeing blind...

sendmail.mc:

define(`ALIAS_FILE', `/etc/aliases')dnl
define(`UUCP_MAILER_MAX', `2000000')dnl
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
define(`CERT_DIR',`/usr/share/ssl/certs')dnl
define(`confCACERT_PATH',`CERT_DIR')dnl
define(`confCACERT',`CERT_DIR/ca-bundle.crt')dnl
define(`confSERVER_CERT',`CERT_DIR/[edited].pem')dnl
define(`confSERVER_KEY',`CERT_DIR/[edited]l.pem')dnl
define(`confCLIENT_CERT',`CERT_DIR/[edited].pem')dnl
define(`confCLIENT_KEY',`CERT_DIR/[edited].pem')dnl
define(`confTLS_SRV_OPTIONS',`V')dnl
define(`confAUTH_OPTIONS', `p,y')dnl
define(`confAUTH_MECHANISMS', `PLAIN LOGIN')dnl
FEATURE(dnsbl, `blackholes.mail-abuse.org', `Rejected - see http://www.mail-abuse.org/rbl/')dnl
FEATURE(dnsbl, `dialups.mail-abuse.org', `Dialup - see http://www.mail-abuse.org/dul/')dnl
FEATURE(dnsbl, `relays.mail-abuse.org', `Open spam relay - see http://work-rss.mail-abuse.org/rss/')dnl
FEATURE(`no_default_msa',`dnl')dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(redirect)dnl
FEATURE(always_add_domain)dnl
FEATURE(use_cw_file)dnl
FEATURE(use_ct_file)dnl
FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl
FEATURE(`access_db')dnl
FEATURE(`blacklist_recipients')dnl
FEATURE(`delay_checks')dnl
EXPOSED_USER(`root')dnl
TRUST_AUTH_MECH(`PLAIN LOGIN')dnl
MASQUERADE_AS(`[edited]')dnl
FEATURE(`masquerade_entire_domain')dnl
FEATURE(`masquerade_envelope')dnl
MAILER(smtp)dnl
MAILER(procmail)dnl
Cwlocalhost.localdomain

access.db:

To:[edited-domain].de RELAY
To:127.0.0.1 RELAY
To:localhost RELAY
To:localhost.localdomain RELAY
To:[edited-ip] RELAY
To:[editd-hostname] RELAY

last but not least, here's a piece of the maillog where the problem occures. i was not able to figure out why "ruleset=check_rcpt" does not occure when the spammail went through...

this is was should happen allways for unauthorised users trying to relay... (but does happen only sometimes):

Apr 25 23:32:57 [hostname] sendmail[6245]: h3PLWtVi006245: ruleset=check_rcpt, arg1=<theism2@sbcglobal.net>, relay=adsl-66-136-94-178.dsl.rcsntx.swbell.net [66.136.94.178], reject=550 5.7.1 <theism2@sbcglobal.net>... Relaying denied. Proper authentication required.
Apr 25 23:32:57 [hostname] sendmail[6245]: h3PLWtVi006245: from=<web242w7@verizon.net>, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=adsl-66-136-94-178.dsl.rcsntx.swbell.net [66.136.94.178]

and this is what actually happens from time to time, giving me so much trouble:

Apr 26 14:20:41 [hostname] sendmail[1597]: h3QCKcmN001597: from=<hottnbi4u@xoxofree.com>, size=3833, class=0, nrcpts=68, msgid=<200304261220.h3QCKcmN001597@[my-mailserver!].de>, proto=SMTP, daemon=MTA, relay=[my-mailserver!] [ip-my-mailserver!]]
Apr 26 14:20:42 [hostname] sendmail[1599]: h3QCKcmN001597: to=<nrwoodson@aol.com>,<rosemt3739@aol.com>,<angel18477@aol.com>,<flkiskafl@aol.com>,<congaithoinay0 1@aol.com>,<janddewing@aol.com>,<ffrodifrog@aol.com>,<jmcin39681@aol.com>,<littleasianstar@a
ol.com>,<lazyguy139@aol.com>,<daqtwitdabooty04@aol.com>,<fmaia5@aol.com>,<hrdliqur@aol.com>,<princes sshrek2@aol.com>,<hobbieregan@aol.com>,<genarator4@aol.com>,<tanya1301@aol.com>,<ant5454man@aol.com> ,<witcherfw@aol.com>,<c1079@aol.com>,<poppyseed2@aol.com>,<pica35@aol.com>,<katiecem@aol.com>,<ruahi ne@aol.com>,<marshallscowfarm@aol.com>,<tannercm@aol.com>,<mlsmeg@aol.com>,<midomido39@aol.com>,<doc kin1@aol.com>,<charles852@aol.com>,<xpmbx@aol.com>,<camay60@aol.com>,<dgarely@aol.com>,<ub1993@aol.c om>,<deeperrhythm@aol.com>,<tdw018@aol.com>,<morajm@aol.com>,<bigbil3158556@aol.com>, [more], delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=2040428, relay=mailin-02.mx.aol.com. [64.12.136.89], dsn=5.0.0, stat=Service unavailable
Apr 26 14:20:42 [hostname] sendmail[1599]: h3QCKcmN001597: to=<lifeesp@aol.com>,<arhbev@aol.com>,<lcohrs@aol.com>,<guam221@aol.com>,<sabdrap@aol.com>,<harrycol on@aol.com>,<cch5861@aol.com>,<kempo05@aol.com>,<sbbether@aol.com>,<xomegagal@aol.com>,<mammysm@aol. com>,<txbatmugsy@aol.com>,<nspctrno9@aol.com>,<murph1717@aol.com>,<betsrams@aol.com>,<thomasb653@aol .com>,<falls15@ao
l.com>,<annp1001@aol.com>,<vpol41@aol.com>,<skillz8525@aol.com>,<sweet604@aol.com>,<skblackwel@aol.c om>,<hstenken@aol.com>,<smustang1999@aol.com>,<adieb2@aol.com>,<petitefouine@aol.com>,<apolk51534@ao l.com>,<jookjoint5@aol.com>,<greenguardian@aol.com>,<old06@aol.com>, delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=2040428, relay=mailin-02.mx.aol.com. [64.12.136.89], ds
n=5.0.0, stat=Service unavailable
Apr 26 14:20:42 [hostname]sendmail[1599]: h3QCKcmN001597: h3QCKgmN001599: DSN: Service unavailable
Apr 26 14:20:44 [hostname] sendmail[1599]: h3QCKgmN001599: to=<hottnbi4u@xoxofree.com>, delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=34857, relay=xoxofree.com. [66.164.2.8], dsn=2.0.0, stat=Sent (h3QCKcG29566 Message accepted for delivery)

everything i want to know is: why was that last message accepted for delivery?

i would be glad if someone has an idea,
thank you!
 
Old 04-27-2003, 10:01 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
I don't get it. SMTP AUTH using SSL shouldn't even give lusers a chance to use your stmp box as a relay w/o valid authentication, unless TLS doesn't work or defines/rules allow bypassing it...

That aside I think you best start checking your relay setup.
I'm no guru, luckily the docs say you could try this: for each entry
Apr 26 14:20:44 [hostname] sendmail[1599]: h3QCKgmN001599: to=<hottnbi4u@xoxofree.com>, delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=34857, relay=xoxofree.com. [66.164.2.8], dsn=2.0.0, stat=Sent (h3QCKcG29566 Message accepted for delivery)
take the "relay=" address, the IP address and the recipient and feed it to sendmail:

/usr/sbin/sendmail -bt
.D{client_name}xoxofree.com
.D{client_addr}66.164.2.8
check_rcpt hottnbi4u@xoxofree.com
/quit

For me me this returns "check_rcpt returns: 550 Relaying denied".

Spam Links Index: Open Relaying: http://www.geocities.com/spamresources/relay.htm
Sendmail specific relay info:
Allowing controlled SMTP relaying: http://www.sendmail.org/tips/relaying.html
Relaying Denied/Allowed: http://www.sendmail.org/~ca/email/relayingdenied.html
Debugging check_rcpt: http://www.sendmail.org/~ca/email/chk-dbg.html#ACCESS

//mod.note: I'll move this over to networking.
 
Old 04-28-2003, 04:14 AM   #3
dunc
LQ Newbie
 
Registered: Apr 2003
Posts: 3

Original Poster
Rep: Reputation: 0
sendmail -bt always returns "check_rcpt returns: 550 Relaying denied" when it should...
Furthermore, I did a lot of OUTSIDE checks for open relay, which all said "you got NO problem".

However, if run checks from INSIDE my server, let's say, script tests or "telnet localhost 25 ...", it seems like the "ruleset=check_rcpt" is never invoked.

Why should "check_rcpt" be skipped in some circumstances other than SMTP AUTH using SSL?
 
Old 04-28-2003, 09:50 AM   #4
dunc
LQ Newbie
 
Registered: Apr 2003
Posts: 3

Original Poster
Rep: Reputation: 0
GOT IT!

seems i have looked in the wrong place. my sendmail configuration is absolutely correct.

but my httpd server was acting as open proxy. sorry, should have thinked of this possibility earlier.

thanks alot!
 
  


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 problem mhatre kedar Linux - Networking 4 03-18-2005 04:49 PM
relaying in sendmail spikes57 Linux - Networking 6 02-27-2004 10:44 AM
Sendmail relaying problem (1/2 Noob!) Nerd2 Linux - Security 7 08-21-2003 04:35 PM
Problem with Sendmail unknown user relaying (LUSER_RELAY)... A08 Linux - Networking 5 07-04-2003 07:34 AM
Sendmail relaying SchoolITguy Linux - Networking 0 10-18-2002 06:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:55 PM.

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