need help modifying shell script

Chris Yuzik itdept at fractalweb.com
Mon Oct 16 04:51:44 IST 2006


René Berber wrote:
> One difference between those scripts is that the new one doesn't use
> /etc/sysconfig/sendmail, there could be some additional options in there.
>   
René,

OK, now we might just be getting there. It's like fishing through 
spaghetti on this system. In MailScanner_app_init_rpmnew, I see that 
sendmail is /usr/sbin/sendmail. Upon visiting this dir, I see that 
/usr/sbin/sendmail is a symbolic link to /etc/alternatives/mta, which is 
a symbolic link to /usr/sbin/sendmail.sendmail (whew!). Now, 
/etc/sysconfig/sendmail is a non-executable text file that contains only 
the following two lines:

    DAEMON=yes
    QUEUE=1h

Upon further investigation, I did the old "tail -f /var/log/maillog | 
grep sendmail" and issued the following command:

    #service sendmail start

which resulted in the following relevant entries:

    Oct 15 20:41:33 ns1 sendmail[18795]: alias database /etc/aliases
    rebuilt by root
    Oct 15 20:41:33 ns1 sendmail[18795]: /etc/aliases: 111 aliases,
    longest 40 bytes, 2039 bytes total
    Oct 15 20:41:33 ns1 sm-acceptingconnections[18811]: starting daemon
    (8.12.11): SMTP+queueing at 01:00:00
    Oct 15 20:41:34 ns1 sm-scanner[18823]: starting daemon (8.12.11):
    queueing at 01:00:00
    Oct 15 20:41:34 ns1 sm-msp-queue[18835]: starting daemon (8.12.11):
    queueing at 01:00:00

This is quite different from:

# service MailScanner stop
# service sendmail stop
# service MailScanner start

Which gives the following:

    Oct 15 20:44:19 ns1 sendmail[19318]: alias database /etc/aliases
    rebuilt by root
    Oct 15 20:44:19 ns1 sendmail[19318]: /etc/aliases: 111 aliases,
    longest 40 bytes, 2039 bytes total
    Oct 15 20:44:19 ns1 sendmail[19326]: starting daemon (8.12.11): SMTP
    Oct 15 20:44:19 ns1 sendmail[19335]: starting daemon (8.12.11):
    queueing at 00:15:00

The obvious differences are the "sm-acceptingconnections", "sm-scanner", 
and "sm-msp-queue"

I've tried stopping saslauthd, then starting MailScanner, then starting 
saslauthd, but it was no better; still asked for the user's password to 
send email, which is normal, but it couldn't recognize the correct 
password when it was given.

I'm now stuck again, and hope that you can get out the ouija-board and 
get me to the next step. :-)

Thanks,
Chris





More information about the MailScanner mailing list