Discussion:
[rancid] Weird email problem
Lai Chen Kang
2008-01-18 01:19:14 UTC
Permalink
Hi all

I have intentionally made modification to one of my switches. I want
rancid to generate a mail and sent it to me. Below is a snippet from
/var/log/maillog

Jan 17 12:00:21 STMGSINMANAGE2 sendmail[8428]: m0H40LbF008428:
from=rancid, size=5978, class=-60, nrcpts=1,
msgid=<***@STMGSINMANAGE2.transmarket.com.sg>,
relay=***@localhost

Jan 17 12:00:21 STMGSINMANAGE2 sendmail[8430]: m0H40L55008430:
from=<***@STMGSINMANAGE2.transmarket.com.sg>, size=6286, class=-60,
nrcpts=1,
msgid=<***@STMGSINMANAGE2.transmarket.com.sg>,
proto=ESMTP, daemon=MTA, relay=STMGSINMANAGE2.transmarket.com.sg [127.0.0.1]

Jan 17 12:00:21 STMGSINMANAGE2 sendmail[8428]: m0H40LbF008428:
to=rancid-***@transmarket.com.sg, ctladdr=rancid (500/500),
delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=143978,
relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m0H40L55008430
Message accepted for delivery)

Jan 17 12:00:21 STMGSINMANAGE2 sendmail[8431]: m0H40L55008430:
to=***@transmarket.com.sg,
ctladdr=<***@STMGSINMANAGE2.transmarket.com.sg> (500/500),
delay=00:00:00, xdelay=00:00:00, mailer=local, pri=144550, dsn=2.0.0,
stat=Sent

/etc/aliases

rancid-admin-routers: ***@transmarket.com.sg
rancid-routers: ***@transmarket.com.sg
rancid-admin-switches: ***@transmarket.com.sg
rancid-switches: ***@transmarket.com.sg
rancid-admin-firewalls: ***@transmarket.com.sg
rancid-firewalls: ***@transmarket.com.sg

Problem is I never got the mail. Even when the last line is stat=Sent.

Any ideas?
Lai Chen Kang
2008-01-18 03:31:40 UTC
Permalink
Sorry for this stupid question but how does one "use aliases manually"?
try using your aliases manually. the receiving host must be trashing the mail.
Post by Lai Chen Kang
Hi all
I have intentionally made modification to one of my switches. I want
rancid to generate a mail and sent it to me. Below is a snippet from
/var/log/maillog
from=rancid, size=5978, class=-60, nrcpts=1,
nrcpts=1,
proto=ESMTP, daemon=MTA, relay=STMGSINMANAGE2.transmarket.com.sg [127.0.0.1]
delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=143978,
relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m0H40L55008430
Message accepted for delivery)
delay=00:00:00, xdelay=00:00:00, mailer=local, pri=144550, dsn=2.0.0,
stat=Sent
/etc/aliases
Problem is I never got the mail. Even when the last line is stat=Sent.
Any ideas?
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Jon Lewis
2008-01-18 04:06:40 UTC
Permalink
I think he means send an email yourself to the address.

Is it possible you have some spam filter that thinks rancid is a spammer?
Post by Lai Chen Kang
Sorry for this stupid question but how does one "use aliases manually"?
try using your aliases manually. the receiving host must be trashing the mail.
Post by Lai Chen Kang
Hi all
I have intentionally made modification to one of my switches. I want
rancid to generate a mail and sent it to me. Below is a snippet from
/var/log/maillog
from=rancid, size=5978, class=-60, nrcpts=1,
nrcpts=1,
proto=ESMTP, daemon=MTA, relay=STMGSINMANAGE2.transmarket.com.sg [127.0.0.1]
delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=143978,
relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m0H40L55008430
Message accepted for delivery)
delay=00:00:00, xdelay=00:00:00, mailer=local, pri=144550, dsn=2.0.0,
stat=Sent
/etc/aliases
Problem is I never got the mail. Even when the last line is stat=Sent.
Any ideas?
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
----------------------------------------------------------------------
Jon Lewis | I route
Senior Network Engineer | therefore you are
Atlantic Net |
_________ http://www.lewis.org/~jlewis/pgp for PGP public key_________
Lai Chen Kang
2008-01-18 04:43:45 UTC
Permalink
I am using qmailtoaster as the mailserver. I believe I have it setup correctly as I can receive mails from other servers
namely backuppc and zenoss. This may not be the right place but where in qmailtoaster should I be looking?
Post by Jon Lewis
I think he means send an email yourself to the address.
Is it possible you have some spam filter that thinks rancid is a spammer?
Post by Lai Chen Kang
Sorry for this stupid question but how does one "use aliases manually"?
try using your aliases manually. the receiving host must be trashing the mail.
Post by Lai Chen Kang
Hi all
I have intentionally made modification to one of my switches. I want
rancid to generate a mail and sent it to me. Below is a snippet from
/var/log/maillog
from=rancid, size=5978, class=-60, nrcpts=1,
nrcpts=1,
proto=ESMTP, daemon=MTA, relay=STMGSINMANAGE2.transmarket.com.sg [127.0.0.1]
delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=143978,
relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m0H40L55008430
Message accepted for delivery)
delay=00:00:00, xdelay=00:00:00, mailer=local, pri=144550, dsn=2.0.0,
stat=Sent
/etc/aliases
Problem is I never got the mail. Even when the last line is stat=Sent.
Any ideas?
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
----------------------------------------------------------------------
Jon Lewis | I route
Senior Network Engineer | therefore you are
Atlantic Net |
_________ http://www.lewis.org/~jlewis/pgp for PGP public key_________
David Luyer
2008-01-18 06:09:14 UTC
Permalink
It says mailer=local on that line, and the other line was sending
to 127.0.0.1 - presumably the MSA to MTA handoff.

Is this maillog from your mail server or your rancid server?
Or is rancid running on your mail server?

It seems possible that you've configured your rancid server to
think it is a final mail server for your domain, so your email
is ending up in /var/spool/mail/$USER on the rancid server, when
it should be being sent off to a different server.

David.
Post by Lai Chen Kang
Hi all
I have intentionally made modification to one of my switches. I want
rancid to generate a mail and sent it to me. Below is a snippet from
/var/log/maillog
from=rancid, size=5978, class=-60, nrcpts=1,
nrcpts=1,
proto=ESMTP, daemon=MTA, relay=STMGSINMANAGE2.transmarket.com.sg [127.0.0.1]
delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=143978,
relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m0H40L55008430
Message accepted for delivery)
delay=00:00:00, xdelay=00:00:00, mailer=local, pri=144550, dsn=2.0.0,
stat=Sent
/etc/aliases
Problem is I never got the mail. Even when the last line is stat=Sent.
Any ideas?
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Lai Chen Kang
2008-01-18 07:12:52 UTC
Permalink
this maillog is from the rancid server.

mail server is on a separate server.

I think you are right.
Post by David Luyer
It says mailer=local on that line, and the other line was sending
to 127.0.0.1 - presumably the MSA to MTA handoff.
Is this maillog from your mail server or your rancid server?
Or is rancid running on your mail server?
It seems possible that you've configured your rancid server to
think it is a final mail server for your domain, so your email
is ending up in /var/spool/mail/$USER on the rancid server, when
it should be being sent off to a different server.
David.
Post by Lai Chen Kang
Hi all
I have intentionally made modification to one of my switches. I want
rancid to generate a mail and sent it to me. Below is a snippet from
/var/log/maillog
from=rancid, size=5978, class=-60, nrcpts=1,
nrcpts=1,
proto=ESMTP, daemon=MTA, relay=STMGSINMANAGE2.transmarket.com.sg [127.0.0.1]
delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=143978,
relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m0H40L55008430
Message accepted for delivery)
delay=00:00:00, xdelay=00:00:00, mailer=local, pri=144550, dsn=2.0.0,
stat=Sent
/etc/aliases
Problem is I never got the mail. Even when the last line is stat=Sent.
Any ideas?
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Lai Chen Kang
2008-01-18 07:35:15 UTC
Permalink
I have removed the user, laichenkang (actually myself) from the rancid server. Hoping that it will be sent to the mail
server but it didn't. Below is the maillog from the rancid server.

Jan 18 15:31:16 STMGSINMANAGE2 sendmail[16088]: m0I7VG8m016088: from=rancid, size=1363, class=-60, nrcpts=1,
msgid=<***@STMGSINMANAGE2.transmarket.com.sg>, relay=***@localhost
Jan 18 15:31:16 STMGSINMANAGE2 sendmail[16090]: m0I7VGw0016090: from=<***@STMGSINMANAGE2.transmarket.com.sg>,
size=1705, class=-60, nrcpts=1, msgid=<***@STMGSINMANAGE2.transmarket.com.sg>, proto=ESMTP,
daemon=MTA, relay=STMGSINMANAGE2.transmarket.com.sg [127.0.0.1]
Jan 18 15:31:16 STMGSINMANAGE2 sendmail[16088]: m0I7VG8m016088: to=rancid-switches, ctladdr=rancid (500/500),
delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=139363, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent
(m0I7VGw0016090 Message accepted for delivery)
Jan 18 15:31:16 STMGSINMANAGE2 sendmail[16091]: m0I7VGw0016090: to=***@transmarket.com.sg,
ctladdr=<rancid-***@STMGSINMANAGE2.transmarket.com.sg> (8/0), delay=00:00:00, mailer=local, pri=229705, dsn=5.1.1,
stat=User unknown
Jan 18 15:31:16 STMGSINMANAGE2 sendmail[16091]: m0I7VGw0016090: m0I7VGw0016091: DSN: User unknown
Jan 18 15:31:16 STMGSINMANAGE2 sendmail[16091]: m0I7VGw0016091: to=<***@STMGSINMANAGE2.transmarket.com.sg>,
delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30000, dsn=2.0.0, stat=Sent

It seems that the mailer being local is not sending it over the network.
Post by David Luyer
It says mailer=local on that line, and the other line was sending
to 127.0.0.1 - presumably the MSA to MTA handoff.
Is this maillog from your mail server or your rancid server?
Or is rancid running on your mail server?
It seems possible that you've configured your rancid server to
think it is a final mail server for your domain, so your email
is ending up in /var/spool/mail/$USER on the rancid server, when
it should be being sent off to a different server.
David.
Post by Lai Chen Kang
Hi all
I have intentionally made modification to one of my switches. I want
rancid to generate a mail and sent it to me. Below is a snippet from
/var/log/maillog
from=rancid, size=5978, class=-60, nrcpts=1,
nrcpts=1,
proto=ESMTP, daemon=MTA, relay=STMGSINMANAGE2.transmarket.com.sg [127.0.0.1]
delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=143978,
relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m0H40L55008430
Message accepted for delivery)
delay=00:00:00, xdelay=00:00:00, mailer=local, pri=144550, dsn=2.0.0,
stat=Sent
/etc/aliases
Problem is I never got the mail. Even when the last line is stat=Sent.
Any ideas?
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Sotiris Tsimbonis
2008-01-18 08:30:30 UTC
Permalink
Post by Lai Chen Kang
I have removed the user, laichenkang (actually myself) from the rancid server. Hoping that it will be sent to the mail
server but it didn't. Below is the maillog from the rancid server.
Jan 18 15:31:16 STMGSINMANAGE2 sendmail[16088]: m0I7VG8m016088: from=rancid, size=1363, class=-60, nrcpts=1,
daemon=MTA, relay=STMGSINMANAGE2.transmarket.com.sg [127.0.0.1]
Jan 18 15:31:16 STMGSINMANAGE2 sendmail[16088]: m0I7VG8m016088: to=rancid-switches, ctladdr=rancid (500/500),
delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=139363, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent
(m0I7VGw0016090 Message accepted for delivery)
stat=User unknown
Jan 18 15:31:16 STMGSINMANAGE2 sendmail[16091]: m0I7VGw0016090: m0I7VGw0016091: DSN: User unknown
delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30000, dsn=2.0.0, stat=Sent
It seems that the mailer being local is not sending it over the network.
As David already pointed out, sendmail uses mailer=local to deliver this
mail. That's probably because STMGSINMANAGE2's sendmail has been
instructed to accept transmarket.com.sg mails, believes the domain is
local and knows all its users (that's why now that you removed the local
user you get User Unknown)..

I would suggest either that you remove transmarket.com.sg from
sendmail's local domains in STMGSINMANAGE2, or that you set a SmartHost
in sendmail and have it deliver all email traffic to your other smtp
server..

Sot.
Post by Lai Chen Kang
Post by David Luyer
It says mailer=local on that line, and the other line was sending
to 127.0.0.1 - presumably the MSA to MTA handoff.
Is this maillog from your mail server or your rancid server?
Or is rancid running on your mail server?
It seems possible that you've configured your rancid server to
think it is a final mail server for your domain, so your email
is ending up in /var/spool/mail/$USER on the rancid server, when
it should be being sent off to a different server.
David.
Post by Lai Chen Kang
Hi all
I have intentionally made modification to one of my switches. I want
rancid to generate a mail and sent it to me. Below is a snippet from
/var/log/maillog
from=rancid, size=5978, class=-60, nrcpts=1,
nrcpts=1,
proto=ESMTP, daemon=MTA, relay=STMGSINMANAGE2.transmarket.com.sg [127.0.0.1]
delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=143978,
relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m0H40L55008430
Message accepted for delivery)
delay=00:00:00, xdelay=00:00:00, mailer=local, pri=144550, dsn=2.0.0,
stat=Sent
/etc/aliases
Problem is I never got the mail. Even when the last line is stat=Sent.
Any ideas?
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Lai Chen Kang
2008-01-18 09:54:31 UTC
Permalink
Thank you all for the help. I finally got it sorted.
Post by Sotiris Tsimbonis
Post by Lai Chen Kang
I have removed the user, laichenkang (actually myself) from the rancid server. Hoping that it will be sent to the mail
server but it didn't. Below is the maillog from the rancid server.
Jan 18 15:31:16 STMGSINMANAGE2 sendmail[16088]: m0I7VG8m016088: from=rancid, size=1363, class=-60, nrcpts=1,
daemon=MTA, relay=STMGSINMANAGE2.transmarket.com.sg [127.0.0.1]
Jan 18 15:31:16 STMGSINMANAGE2 sendmail[16088]: m0I7VG8m016088: to=rancid-switches, ctladdr=rancid (500/500),
delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=139363, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent
(m0I7VGw0016090 Message accepted for delivery)
stat=User unknown
Jan 18 15:31:16 STMGSINMANAGE2 sendmail[16091]: m0I7VGw0016090: m0I7VGw0016091: DSN: User unknown
delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30000, dsn=2.0.0, stat=Sent
It seems that the mailer being local is not sending it over the network.
As David already pointed out, sendmail uses mailer=local to deliver this
mail. That's probably because STMGSINMANAGE2's sendmail has been
instructed to accept transmarket.com.sg mails, believes the domain is
local and knows all its users (that's why now that you removed the local
user you get User Unknown)..
I would suggest either that you remove transmarket.com.sg from
sendmail's local domains in STMGSINMANAGE2, or that you set a SmartHost
in sendmail and have it deliver all email traffic to your other smtp
server..
Sot.
Post by Lai Chen Kang
Post by David Luyer
It says mailer=local on that line, and the other line was sending
to 127.0.0.1 - presumably the MSA to MTA handoff.
Is this maillog from your mail server or your rancid server?
Or is rancid running on your mail server?
It seems possible that you've configured your rancid server to
think it is a final mail server for your domain, so your email
is ending up in /var/spool/mail/$USER on the rancid server, when
it should be being sent off to a different server.
David.
Post by Lai Chen Kang
Hi all
I have intentionally made modification to one of my switches. I want
rancid to generate a mail and sent it to me. Below is a snippet from
/var/log/maillog
from=rancid, size=5978, class=-60, nrcpts=1,
nrcpts=1,
proto=ESMTP, daemon=MTA, relay=STMGSINMANAGE2.transmarket.com.sg [127.0.0.1]
delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=143978,
relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m0H40L55008430
Message accepted for delivery)
delay=00:00:00, xdelay=00:00:00, mailer=local, pri=144550, dsn=2.0.0,
stat=Sent
/etc/aliases
Problem is I never got the mail. Even when the last line is stat=Sent.
Any ideas?
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Riley Tompkins
2008-01-18 16:13:39 UTC
Permalink
You could also use sendmail masquerading to re-write the local server
domain with your domain and when your rancid server queries your
domain's MX record it would get sent to the proper mail server.
-Charles
Post by Lai Chen Kang
Thank you all for the help. I finally got it sorted.
Post by Sotiris Tsimbonis
Post by Lai Chen Kang
I have removed the user, laichenkang (actually myself) from the rancid
server. Hoping that it will be sent to the mail
Post by Sotiris Tsimbonis
Post by Lai Chen Kang
server but it didn't. Below is the maillog from the rancid server.
from=rancid, size=1363, class=-60, nrcpts=1,
Post by Sotiris Tsimbonis
Post by Lai Chen Kang
size=1705, class=-60, nrcpts=1,
proto=ESMTP,
Post by Sotiris Tsimbonis
Post by Lai Chen Kang
daemon=MTA, relay=STMGSINMANAGE2.transmarket.com.sg [127.0.0.1]
to=rancid-switches, ctladdr=rancid (500/500),
Post by Sotiris Tsimbonis
Post by Lai Chen Kang
delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=139363,
relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent
Post by Sotiris Tsimbonis
Post by Lai Chen Kang
(m0I7VGw0016090 Message accepted for delivery)
delay=00:00:00, mailer=local, pri=229705, dsn=5.1.1,
Post by Sotiris Tsimbonis
Post by Lai Chen Kang
stat=User unknown
m0I7VGw0016091: DSN: User unknown
Post by Sotiris Tsimbonis
Post by Lai Chen Kang
delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30000, dsn=2.0.0,
stat=Sent
Post by Sotiris Tsimbonis
Post by Lai Chen Kang
It seems that the mailer being local is not sending it over the network.
As David already pointed out, sendmail uses mailer=local to deliver this
mail. That's probably because STMGSINMANAGE2's sendmail has been
instructed to accept transmarket.com.sg mails, believes the domain is
local and knows all its users (that's why now that you removed the local
user you get User Unknown)..
I would suggest either that you remove transmarket.com.sg from
sendmail's local domains in STMGSINMANAGE2, or that you set a SmartHost
in sendmail and have it deliver all email traffic to your other smtp
server..
Sot.
Post by Lai Chen Kang
Post by David Luyer
It says mailer=local on that line, and the other line was sending
to 127.0.0.1 - presumably the MSA to MTA handoff.
Is this maillog from your mail server or your rancid server?
Or is rancid running on your mail server?
It seems possible that you've configured your rancid server to
think it is a final mail server for your domain, so your email
is ending up in /var/spool/mail/$USER on the rancid server, when
it should be being sent off to a different server.
David.
Post by Lai Chen Kang
Hi all
I have intentionally made modification to one of my switches. I want
rancid to generate a mail and sent it to me. Below is a snippet from
/var/log/maillog
from=rancid, size=5978, class=-60, nrcpts=1,
nrcpts=1,
proto=ESMTP, daemon=MTA, relay=STMGSINMANAGE2.transmarket.com.sg [127.0.0.1]
delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=143978,
relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m0H40L55008430
Message accepted for delivery)
delay=00:00:00, xdelay=00:00:00, mailer=local, pri=144550, dsn=2.0.0,
stat=Sent
/etc/aliases
Problem is I never got the mail. Even when the last line is stat=Sent.
Any ideas?
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
--
Sent from Gmail for mobile | mobile.google.com
Loading...