need help modifying shell script

René Berber r.berber at computer.org
Mon Oct 16 05:16:26 IST 2006


Chris Yuzik wrote:
[snip]
> 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

Normal so far.

> 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"

The rpmnew script uses -OProcessTitlePrefix= to set those names.

> 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.

And no output to the log?  That would be unusual.

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

Wild guess: saslauthd needs "sendmail" as process name, not
"sm-acceptingconnections"... I've never changed the name of the process so I
have no experience here.

So, quick test time, edit rpmnew script and get rid of the option for the
sm-acceptingconnections daemon.  The alternative would be to create a link to
the /usr/lib/sasl2/Sendmail.cf file with the funky names [but all this is just a
wild guess, I really don't know what is going on].
-- 
René Berber



More information about the MailScanner mailing list