I have root aliased to "webmaster@mydomain.com" in /etc/aliases. When I use "sendmail -bv root", it shows that the mail will be send to "webmaster@mydomain.com".
But when I use "mail root", the mail goes to "root@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.
On Sun, May 18, 2014 at 10:38 AM, Steven Stern < subscribed-lists@sterndata.com> wrote:
I have root aliased to "webmaster@mydomain.com" in /etc/aliases. When I use "sendmail -bv root", it shows that the mail will be send to "webmaster@mydomain.com".
But when I use "mail root", the mail goes to "root@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@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
On 05/18/2014 01:37 PM, Jack Craig wrote:
On Sun, May 18, 2014 at 10:38 AM, Steven Stern <subscribed-lists@sterndata.com mailto:subscribed-lists@sterndata.com> wrote:
I have root aliased to "webmaster@mydomain.com <mailto:webmaster@mydomain.com>" in /etc/aliases. When I use "sendmail -bv root", it shows that the mail will be send to "webmaster@mydomain.com <mailto:webmaster@mydomain.com>". But when I use "mail root", the mail goes to "root@mylocalhost.mydomain.com <mailto:root@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@lists.fedoraproject.org <mailto:users@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@mydomain.com". It's addressed to "root@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.
did you run /etc/mail/make after db files update?
On Sun, May 18, 2014 at 12:09 PM, Steven Stern < subscribed-lists@sterndata.com> wrote:
On 05/18/2014 01:37 PM, Jack Craig wrote:
On Sun, May 18, 2014 at 10:38 AM, Steven Stern <subscribed-lists@sterndata.com mailto:subscribed-lists@sterndata.com> wrote:
I have root aliased to "webmaster@mydomain.com <mailto:webmaster@mydomain.com>" in /etc/aliases. When I use "sendmail -bv root", it shows that the mail will be send to "webmaster@mydomain.com <mailto:webmaster@mydomain.com>". But when I use "mail root", the mail goes to "root@mylocalhost.mydomain.com <mailto:root@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@lists.fedoraproject.org <mailto:users@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@mydomain.com". It's addressed to "root@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
users mailing list users@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
On 05/18/2014 05:07 PM, Jack Craig wrote:
did you run /etc/mail/make after db files update?
Of course.
Anyhow, the workaround is to use genericstable. I don't know why it's needed on this system and none of the others, but it's got things going again
@subdomain.mydomain.com %1@mydomain.com
On Sun, May 18, 2014 at 12:09 PM, Steven Stern <subscribed-lists@sterndata.com mailto:subscribed-lists@sterndata.com> wrote:
On 05/18/2014 01:37 PM, Jack Craig wrote: > > > > On Sun, May 18, 2014 at 10:38 AM, Steven Stern > <subscribed-lists@sterndata.com <mailto:subscribed-lists@sterndata.com> <mailto:subscribed-lists@sterndata.com <mailto:subscribed-lists@sterndata.com>>> > wrote: > > I have root aliased to "webmaster@mydomain.com <mailto:webmaster@mydomain.com> > <mailto:webmaster@mydomain.com <mailto:webmaster@mydomain.com>>" in /etc/aliases. When I > use "sendmail -bv root", it shows that the mail will be send to > "webmaster@mydomain.com <mailto:webmaster@mydomain.com> <mailto:webmaster@mydomain.com <mailto:webmaster@mydomain.com>>". > > But when I use "mail root", the mail goes to > "root@mylocalhost.mydomain.com <mailto:root@mylocalhost.mydomain.com> <mailto:root@mylocalhost.mydomain.com <mailto:root@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@lists.fedoraproject.org <mailto:users@lists.fedoraproject.org> <mailto:users@lists.fedoraproject.org <mailto:users@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@mydomain.com <mailto:webmaster@mydomain.com>>". It's addressed to "root@anothermachineonmynetwork.mydomain.com <mailto:root@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 -- users mailing list users@lists.fedoraproject.org <mailto:users@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
On Sun, 2014-05-18 at 12:38 -0500, Steven Stern wrote:
I have root aliased to "webmaster@mydomain.com" in /etc/aliases. When I use "sendmail -bv root", it shows that the mail will be send to "webmaster@mydomain.com".
But when I use "mail root", the mail goes to "root@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 haven't run sendmail on a recent release, but these sorts of things have caused me grief in the past:
If you want to post to an external mailserver, your "from" address has to be a real address (the domain name has to have a public IP, at the very least, that the external service can look up). They won't accept mail coming from something@localhost.localdomain, or any fictitious domain names.
Your machine's hostname has to resolve properly. If your machine thinks that it is localhost.localdomain, rather than some-made-up.example.com, sending mail behaves oddly.
If you've done dopey things with your /etc/hosts files, such as putting your machine hostname into the localhost lines, instead of into the lines that are associated with your ethernet port addresses, sending mail can be screwy. For what it's worth, I have a properly functioning DNS server on my LAN, and no machine names in any /etc/hosts files, just the localhost lines.
Mailservers, and other servers, can do some strange shenanigans to determine their hostnames, which can trip you up, such as: Look up the hostname, find out its numerical IP, reverse look-up that IP, to find out its hostname. Or, reverse-lookup its IP to find the hostname, look up the IP for that hostname, then rinse, lather, repeat. Either as a way to find out these things, or as part of the confirmation that the addresses are correct (e.g. anti-spam techniques).
If something resolves to 127.0.0.1 or localhost, in the middle of such sequences, everything goes off course from what you expected.