strange sendmail behavir

Steven Stern subscribed-lists at sterndata.com
Sun May 18 19:09:37 UTC 2014


On 05/18/2014 01:37 PM, Jack Craig wrote:
> 
> 
> 
> On Sun, May 18, 2014 at 10:38 AM, Steven Stern
> <subscribed-lists at sterndata.com <mailto:subscribed-lists at sterndata.com>>
> wrote:
> 
>     I have root aliased to "webmaster at mydomain.com
>     <mailto:webmaster at mydomain.com>" in /etc/aliases.  When I
>     use "sendmail -bv root", it shows that the mail will be send to
>     "webmaster at mydomain.com <mailto:webmaster at mydomain.com>".
> 
>     But when I use "mail root", the mail goes to
>     "root at mylocalhost.mydomain.com <mailto:root at mylocalhost.mydomain.com>".
> 
>     Mail is handled by a SMARTHOST statement going out to a gmail mx server,
>     but the problem remains if I let it default to finding an MX on its own.
> 
>     I'm baffled.
>     --
>     -- Steve
>     --
>     users mailing list
>     users at lists.fedoraproject.org <mailto:users at lists.fedoraproject.org>
>     To unsubscribe or change subscription options:
>     https://admin.fedoraproject.org/mailman/listinfo/users
>     Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
>     Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
>     Have a question? Ask away: http://ask.fedoraproject.org
> 
> 
> 
> *you might try some of these sendmail debug chants, ...*
> 
>    cat /var/log/maillog | grep -c 'reject='
> 
> to reset service
> 
>    /etc/init.d/sendmail {start|stop|restart}
> 
> sendmail logging levels
> 
> /-d0     General debugging.
> -d1     Show send information.
> -d2     End with finis( ).
> -d3     Print the load average.
> -d4     Enough disk space.
> -d5     Show events.
> -d6     Show failed mail.
> -d7     The queue file name.
> -d8     DNS name resolution.
> -d9     Trace RFC1413 queries.
> -d9.1     Make host name canonical.
> -d10     Show recipient delivery.
> -d11     Trace delivery.
> -d12     Show mapping of relative host.
> -d13     Show delivery.
> -d14     Show header field commas.
> -d15     Show network get request activity.
> -d16     Outgoing connections.
> -d17     List MX hosts./
> 
> 12 SMTP connects logged at LOG_INFO.
> 13 Log bad user shells, world-writable files, and other questionable
> situations.
> 14 Connection refusals logged at LOG_INFO.
> 15 All incoming and outgoing SMTP commands and their arguments logged at
> LOG_INFO.
> 
> 
> sendmail -v -d0.15 -bv jackc
> 
> 
> 

When I run  it from the command line, it looks OK. But when it gets to
Google, the header does not include "for <webmaster at mydomain.com>".
It's addressed to "root at anothermachineonmynetwork.mydomain.com".  When I
send from an identically configured CentOS machine, the "for" line appears.

I've gone so far as to copy /etc/mail/* and /etc/aliases* from that
CentOS machine to my Fedora machine, but that doesn't fix the problem.

-- 
-- Steve


More information about the users mailing list