service sendmail restart fails

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

straylight23
Posts: 28
Joined: Fri Mar 18, 2005 8:21 am

service sendmail restart fails

Postby straylight23 » Thu Dec 14, 2006 6:10 am

Hi all,

i was following the steps in "Configuring_SpamAssassin_for_Scalix.pdf" and edited /etc/mail/sendmail.cf accordingly. After executing "service sendmail restart" i got the following error:

Code: Select all

[root@scalix ~]# service sendmail restart
sendmail herunterfahren:                                   [  OK  ]
sm-client herunterfahren:                                  [FEHLGESCHLAGEN]
sendmail starten: 554 5.0.0 /etc/mail/sendmail.cf: line 1823: unknown configuration line "
                A=unix.in -s h
                A=xport.in -s h u"
                                                           [FEHLGESCHLAGEN]
sm-client starten:                                         [  OK  ]


Funny though, that sendmail is actually running:

Code: Select all

[root@scalix ~]# ps auxw |grep sendmail
smmsp    24531  0.0  0.1  8204 1608 ?        Ss   11:08   0:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue


ok, i thought i had done an error while editing a copied back the original sendmail.cf, but to no avail.
So it seems, that even the original config is wrong in the Scalix-Entries:

Code: Select all

#####  $Id: scalix.m4,v 1.1 2006/10/20 10:32:19 jch Exp $  #####

SScalixMapper
# do the LDAP lookup
R<$+><$+>                       $: <$(ldapsx $2 $: $)> <$1> <$2>

# if temporary failire, return original address for MTA to queue up
R<$* <TMPF>> <$+> <$+>          $: $&{opMode} $| TMPF <$&{addr_type}> $| $2
R$* $| TMPF <$*> $| $+          $@ $3

# If matched by LDAP, resolve to the right Scalix mailer
R<$+> <scalix $*> <$+>          $# scalix_xport $@ $1 $: scalix
R<$+> <$+> <$+>                 $# scalix_mime $@ $1 $: $2

# ... otherwise return the original address
R<> <$+> <$+>                   $@ $1


                A=unix.in -s $h
                A=xport.in -s $h $u


Any hints on that?
Kind regards,
Tom

straylight23
Posts: 28
Joined: Fri Mar 18, 2005 8:21 am

Update...

Postby straylight23 » Thu Dec 14, 2006 6:20 am

sendmail is NOT working properly now:

Code: Select all

Dec 14 11:11:00 scalix spamass-milter[24330]: SpamAssassin: mi_stop=1
Dec 14 11:11:00 scalix spamass-milter[24330]: spamass-milter 0.3.1 exiting
Dec 14 11:11:00 scalix spamass-milter[24553]: spamass-milter 0.3.1 starting
Dec 14 11:18:11 scalix sendmail[24596]: kBEAIB9s024596: from=<tliesner@crecon.lan>, size=518, class=0, nrcpts=1, msgid=<458124E4.9000205@crecon.lan>, proto=ESMTP, relay=root@localhost
Dec 14 11:18:11 scalix sendmail[24596]: kBEAIB9s024596: to=<m.kaspari@crecon.lan>, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30518, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]

Code: Select all

[root@scalix ~]# telnet localhost 25
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host: Connection refused
[root@scalix ~]#

now thats really bad. What can i do?

Kind regards,
Tom

straylight23
Posts: 28
Joined: Fri Mar 18, 2005 8:21 am

Postby straylight23 » Thu Dec 14, 2006 6:44 am

In /etc/mail/ there is a file called sendmail.cf.2 wich actually lets sendmail start properly, but the configuration is wrong. With the help of "diff" i tried to replace the offending lines in sendmail.cf with the ones in sendmail.cf.2. Senmail starts okay, but messages get deferred:

Code: Select all

Dec 14 11:40:10 scalix sendmail[24990]: alias database /etc/aliases rebuilt by root
Dec 14 11:40:12 scalix sendmail[24990]: /etc/aliases: 78 aliases, longest 10 bytes, 802 bytes total
Dec 14 11:40:12 scalix sendmail[25073]: starting daemon (8.13.1): SMTP+queueing@01:00:00
Dec 14 11:40:12 scalix sm-msp-queue[25081]: starting daemon (8.13.1): queueing@01:00:00
Dec 14 11:40:38 scalix sendmail[25102]: kBEAecL2025102: from=<tliesner@crecon.lan>, size=520, class=0, nrcpts=1, msgid=<45812A26.2080207@crecon.lan>, proto=ESMTP, relay=root@localhost
Dec 14 11:40:38 scalix sendmail[25106]: kBEAecb5025106: SYSERR(root): buildaddr: unknown mailer scalix
Dec 14 11:40:38 scalix sendmail[25102]: kBEAecL2025102: to=<m.kaspari@crecon.lan>, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30520, relay=[127.0.0.1] [127.0.0.1], dsn=5.0.0, stat=Service unavailable
Dec 14 11:40:38 scalix sendmail[25102]: kBEAecL2025102: kBEAecL3025102: DSN: Service unavailable
Dec 14 11:40:38 scalix sendmail[25106]: kBEAecb6025106: SYSERR(root): buildaddr: unknown mailer scalix
Dec 14 11:40:38 scalix sendmail[25102]: kBEAecL3025102: to=<tliesner@crecon.lan>, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31544, relay=[127.0.0.1], dsn=5.3.5, stat=Service unavailable
Dec 14 11:40:38 scalix sendmail[25106]: kBEAecb6025106: from=<>, size=1544, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Dec 14 11:40:38 scalix sendmail[25102]: kBEAecL3025102: kBEAecL4025102: return to sender: Service unavailable
Dec 14 11:40:38 scalix spamass-milter[24553]: Could not retrieve sendmail macro "r"!.  Please add it to confMILTER_MACROS_ENVRCPT for better spamassassin results
Dec 14 11:40:38 scalix sendmail[25106]: kBEAecb8025106: from=<>, size=4127, class=0, nrcpts=1, msgid=<200612141040.kBEAecL4025102@scalix.crecon.lan>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Dec 14 11:40:38 scalix spamd[24315]: spamd: connection from localhost [127.0.0.1] at port 47345
Dec 14 11:40:38 scalix spamd[24315]: spamd: setuid to root succeeded
Dec 14 11:40:38 scalix spamd[24315]: spamd: creating default_prefs: /root/.spamassassin/user_prefs
Dec 14 11:40:38 scalix spamd[24315]: config: created user preferences file: /root/.spamassassin/user_prefs
Dec 14 11:40:38 scalix spamd[24315]: spamd: still running as root: user not specified with -u, not found, or set to root, falling back to nobody at /usr/bin/spamd line 1147, <GEN5> line 4.
Dec 14 11:40:38 scalix spamd[24315]: spamd: processing message <200612141040.kBEAecL4025102@scalix.crecon.lan> for root:99
Dec 14 11:40:38 scalix spamd[24315]: mkdir /root/.spamassassin: Keine Berechtigung at /usr/lib/perl5/vendor_perl/5.8.5/Mail/SpamAssassin.pm line 1530
Dec 14 11:40:38 scalix spamd[24315]: locker: safe_lock: cannot create tmp lockfile /root/.spamassassin/auto-whitelist.lock.scalix.crecon.lan.24315 for /root/.spamassassin/auto-whitelist.lock: Keine Berechtigung
Dec 14 11:40:38 scalix spamd[24315]: auto-whitelist: open of auto-whitelist file failed: locker: safe_lock: cannot create tmp lockfile /root/.spamassassin/auto-whitelist.lock.scalix.crecon.lan.24315 for /root/.spamassassin/auto-whitelist.lock: Keine Berechtigung
Dec 14 11:40:38 scalix spamd[24315]: bayes: locker: safe_lock: cannot create tmp lockfile /root/.spamassassin/bayes.lock.scalix.crecon.lan.24315 for /root/.spamassassin/bayes.lock: Keine Berechtigung
Dec 14 11:40:38 scalix spamd[24315]: spamd: clean message (-1.4/5.0) for root:99 in 0.3 seconds, 4497 bytes.
Dec 14 11:40:38 scalix spamd[24315]: spamd: result: . -1 - ALL_TRUSTED scantime=0.3,size=4497,user=root,uid=99,required_score=5.0,rhost=localhost,raddr=127.0.0.1,rport=47345,mid=<200612141040.kBEAecL4025102@scalix.crecon.lan>,autolearn=failed
Dec 14 11:40:38 scalix sendmail[25106]: kBEAecb8025106: Milter add: header: X-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED autolearn=failed \n\tversion=3.1.7
Dec 14 11:40:38 scalix sendmail[25106]: kBEAecb8025106: Milter add: header: X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on scalix.crecon.lan
Dec 14 11:40:38 scalix sendmail[25102]: kBEAecL4025102: to=postmaster, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=32568, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (kBEAecb8025106 Message accepted for delivery)
Dec 14 11:40:38 scalix spamd[24312]: prefork: child states: II
Dec 14 11:40:38 scalix sendmail[25112]: kBEAecb8025106: to=root, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=34496, dsn=2.0.0, stat=Sent


straylight23
Posts: 28
Joined: Fri Mar 18, 2005 8:21 am

Postby straylight23 » Thu Dec 14, 2006 9:23 am

i restored the sendmail.cf from a fresh installation and sendmail starts without complaints. BUT now i get a "config error: mail loops back to me"
This is getting extremly annoying... ANYONE with ANY hints?

Regards,
Tom

straylight23
Posts: 28
Joined: Fri Mar 18, 2005 8:21 am

..solved...

Postby straylight23 » Thu Dec 14, 2006 10:36 am

--- the original sendmail.cf i used on this box came from a scalix 11 rc1 configuration. Why that was broken? No Idea. When restoring the original sendmail.cf from a clean scalix 10 installation i forgot that i previously editied smtp.conf to integrate spamass-milter. I then configured sendmail.cf accordingly an everything i fine now...

Thx ans sorry to anyone who gave a thought on this,
regards,
Tom


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 0 guests

cron