[rancid] Re: Weird email problem

Lai Chen Kang laichenkang at gmail.com
Fri Jan 18 09:54:31 UTC 2008


Thank you all for the help. I finally got it sorted.

Sotiris Tsimbonis wrote:
> On 01/18/2008 09:35 AM, Lai Chen Kang wrote:
>> 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=<200801180731.m0I7VG8m016088 at STMGSINMANAGE2.transmarket.com.sg>, relay=rancid at localhost
>> Jan 18 15:31:16 STMGSINMANAGE2 sendmail[16090]: m0I7VGw0016090: from=<rancid at STMGSINMANAGE2.transmarket.com.sg>, 
>> size=1705, class=-60, nrcpts=1, msgid=<200801180731.m0I7VG8m016088 at 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=laichenkang at transmarket.com.sg, 
>> ctladdr=<rancid-switches at 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=<rancid at 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.
>>
> 
> 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.
> 
>>
>>
>> David Luyer wrote:
>>> 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.
>>>
>>>
>>>
>>>> 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=<200801170400.m0H40LbF008428 at STMGSINMANAGE2.transmarket.com.sg>,
>>>> relay=rancid at localhost
>>>>
>>>> Jan 17 12:00:21 STMGSINMANAGE2 sendmail[8430]: m0H40L55008430:
>>>> from=<rancid at STMGSINMANAGE2.transmarket.com.sg>, size=6286, class=-60,
>>>> nrcpts=1,
>>>> msgid=<200801170400.m0H40LbF008428 at 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-switches at 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=laichenkang at transmarket.com.sg,
>>>> ctladdr=<rancid at 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:   laichenkang at transmarket.com.sg
>>>> rancid-routers:         laichenkang at transmarket.com.sg
>>>> rancid-admin-switches:  laichenkang at transmarket.com.sg
>>>> rancid-switches:        laichenkang at transmarket.com.sg
>>>> rancid-admin-firewalls: laichenkang at transmarket.com.sg
>>>> rancid-firewalls:       laichenkang at transmarket.com.sg
>>>>
>>>> Problem is I never got the mail. Even when the last line is stat=Sent.
>>>>
>>>> Any ideas?
>>>> _______________________________________________
>>>> Rancid-discuss mailing list
>>>> Rancid-discuss at shrubbery.net
>>>> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>>>>
>> _______________________________________________
>> Rancid-discuss mailing list
>> Rancid-discuss at shrubbery.net
>> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>>
> 
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss


More information about the Rancid-discuss mailing list