LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-20-2010, 10:58 PM   #1
soslinux
LQ Newbie
 
Registered: Oct 2008
Posts: 18

Rep: Reputation: 0
Sendmail Error - Rejected after DATA: could not verify "From:" header address"


Hi all, I have spent three days on this and am at my end so help would be greatly appreciated. I have a server running CentOS 5.5 and Sendmail 8.13.8. All works fine except for emails from Logwatch. I see this in the maillog:

Jul 20 07:49:24 ifsboss sendmail[1027]: o6K5aIc0000515: to=system@soswebs.co.za, ctladdr=<root@ifsboss.ifsdbn.co.za> (0/0), delay=00:13:06, xdelay=00:00:45, mailer=relay, pri=210540, relay=smtp.isdsl.net. [196.26.208.197], dsn=4.0.0, stat=Deferred: 451-Rejected after DATA: could not verify "From:" header address

No matter what i have done It still fails on this. To list what I have done is plenty so I thought I'd poll you experts for possible past experience that could either confirm I am on the right track, or point me to it.

If I try force the mail that is stalled in the mailq I see this:

Running /var/spool/mqueue/o6I22Exm009672 (sequence 1 of 1)
<gary@soswebs.co.za>,system@soswebs.co.za... Connecting to smtp.isdsl.net. via relay...
220 smtp01.isdsl.net ESMTP Exim 4.69 Tue, 20 Jul 2010 07:53:28 +0200
>>> EHLO ifsboss.ifsdbn.co.za
250-smtp01.isdsl.net Hello 196-209-92-253.dynamic.isadsl.co.za [196.209.92.253]
250-SIZE 104857600
250-8BITMIME
250-EXPN
250 HELP
>>> MAIL From:<root@ifsboss.ifsdbn.co.za> SIZE=126181
250 OK
>>> RCPT To:<gary@soswebs.co.za>
250 Accepted
>>> RCPT To:<system@soswebs.co.za>
250 Accepted
>>> DATA
354 Enter message, ending with "." on a line by itself
>>> .
451-Rejected after DATA: could not verify "From:" header address
451-logwatch@ifsboss.ifsdbn.co.za: could not connect to ifsboss.ifsdbn.co.za
451 [41.185.12.60]: Operation timed out
<gary@soswebs.co.za>,system@soswebs.co.za... Deferred: 451-Rejected after DATA: could not verify "From:" header address
Closing connection to smtp.isdsl.net.
>>> QUIT
221 smtp01.isdsl.net closing connection

Always that "could not verify "From:" header address". In this case the from address is:

>>> MAIL From:<root@ifsboss.ifsdbn.co.za>

Which is a accepted address as it is mapped:

ifsdbn.co.za@ifsdbn.co.za : Address ifsdbn.co.za

ifsdbn.co.za is acceptable as all the users mail addresses are @ifsdbn.co.za and they all work.

What am I missing?

Thanks,
Roger
 
Old 07-21-2010, 03:32 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,164
Blog Entries: 1

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

I guess that the remote smtp does not like the sender address (root@ifsboss.ifsdbn.co.za). You see @ifsboss.ifsdbn.co.za is different from @ifsdbn.co.za
You can either use masquerade also for root, or if it's possible configure logwatch to use a valid sender address (like xxx@ifsdbn.co.za)

Regards
 
Old 07-22-2010, 07:09 AM   #3
soslinux
LQ Newbie
 
Registered: Oct 2008
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks for the reply bathory, it is appreciated. I have managed to get this resolved by editing the /etc/mail/sendmail.mc file to masquerade as the correct domain as follows:

dnl # Also accept email sent to "localhost.localdomain" as local email.
dnl #
LOCAL_DOMAIN(`ifsdbn.co.za')dnl
dnl #
dnl # The following example makes mail from this host and any additional
dnl # specified domains appear to be sent from mydomain.com
dnl #
MASQUERADE_AS(`ifsdbn.co.za')dnl
dnl #
dnl # masquerade not just the headers, but the envelope as well
dnl #
FEATURE(masquerade_envelope)dnl
 
  


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
How to get the "data type" of an "unknown variable" in "C Language" ? Affair Programming 8 06-20-2009 12:30 PM
Areca 1220 drivers + FC6 = "Verify ELF error" generic_user Linux - Kernel 1 10-31-2006 05:14 PM
"mythtv-setup" giving "Session management error: Authentication Rejected" Mitchua Ubuntu 0 10-09-2005 04:32 PM
Error: "Tried to connect to session manager, Authentication Rejected, reason : None" randomx Linux - Software 0 01-24-2005 03:44 PM
Email Error - "Recipient address rejected: Relay access denied" ripcord Linux - Newbie 1 10-31-2002 03:00 PM

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

All times are GMT -5. The time now is 10:59 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