mail not processed by Scalix ? mail goes to /var/spool/mail/

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

steves
Posts: 23
Joined: Mon Mar 20, 2006 10:02 pm

mail not processed by Scalix ? mail goes to /var/spool/mail/

Postby steves » Thu Mar 23, 2006 10:09 am

Installed MailScanner on the Scalix system with no issues.

Changed smtpd.cfg, added SMTPFILTER=TRUE

Emails get processed by MailScanner/sendmail BUT they get stored
in /var/spool/mail/

Using FC4.

Thanks

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Thu Mar 23, 2006 10:42 am

When you configured MailScanner with sendmail, did you run the command

Code: Select all

omsendin


This re-instates the Scalix rules that are required to re-reroute the message back into Scalix.

Cheers

Dave
Last edited by ScalixSupport on Sun Mar 26, 2006 1:27 pm, edited 1 time in total.

steves
Posts: 23
Joined: Mon Mar 20, 2006 10:02 pm

Postby steves » Fri Mar 24, 2006 9:41 am

hhmm, I did not know about that command. Is it mentioned anywhere?

This is what I've done, does anything look weird?

[root@m1 ~]# omsendin
NOTE: /etc/mail/sendmail.cf unchanged. Scalix lines already active.

cmp: /opt/scalix/newconfig/submit.cf: No such file or directory
NOTE: A copy of your sendmail configuration with changes for Scalix is
now in /opt/scalix/newconfig/om_submit.cf
Use /opt/scalix/newconfig/sm.update to install it.


Would you like to install the Scalix sendmail.cf file now (y/n)y

executing /opt/scalix/newconfig/sm.update

NOTE: [OMINST 608] /etc/mail/sendmail.cf backed up to
NOTE: /etc/mail/sendmail.cf.2 prior to changes for Scalix.

Shutting down sendmail: sendmail
Shutting down sm-client:
Starting sendmail: sendmail
Starting sm-client: sm-client
Sendmail restarted.

"checked MailScanner"

[root@m1 ~]# /etc/init.d/MailScanner status
Checking MailScanner daemons:
MailScanner: [ OK ]
incoming sendmail: head: cannot open `/var/run/sendmail.in.pid' for rea ding: No such file or directory
[FAILED]
outgoing sendmail: head: cannot open `/var/run/sendmail.out.pid' for re ading: No such file or directory
[FAILED]

"Stopped MailScanner"

[root@m1 ~]# /etc/init.d/MailScanner stop
Shutting down MailScanner daemons:
MailScanner: [ OK ]
incoming sendmail: [ OK ]


"Started it again and checked it"

[root@m1 ~]# /etc/init.d/MailScanner start
Starting MailScanner daemons:
incoming sendmail: [ OK ]
outgoing sendmail: [ OK ]
MailScanner: [ OK ]
[root@m1 ~]# /etc/init.d/MailScanner status
Checking MailScanner daemons:
MailScanner: [ OK ]
incoming sendmail: head: cannot open `/var/run/sendmail.in.pid' for rea ding: No such file or directory
[FAILED]
outgoing sendmail:

"incoming sendmail seems to complain, Is that because Scalix has taken over?"

"/var/log/maillog gives errors"

Mar 25 00:32:11 m1 sendmail[31982]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Mar 25 00:32:11 m1 sendmail[31982]: daemon MTA: problem creating SMTP socket
Mar 25 00:32:11 m1 sendmail[31982]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: server SMTP socket wedged: exiting

"Send a message to myself, seems to be accepted, can not see traces of MailScanner"

[root@m1 ~]# echo another44 |mail -s another44 steves
[root@m1 ~]# tail -f /var/log/maillog
Mar 25 00:38:22 m1 sendmail[32240]: k2ODcMFJ032240: from=root, size=41, class=0, nrcpts=1, msgid=<200603241338.k2ODcMFJ032240@m1.metrofire.com.au>, relay=root@localhost
Mar 25 00:38:23 m1 sendmail[32241]: k2ODcM9L032241: from=<root@m1.metrofire.com.au>, size=341, class=0, nrcpts=1, msgid=<200603241338.k2ODcMFJ032240@m1.metrofire.com.au>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Mar 25 00:38:23 m1 sendmail[32240]: k2ODcMFJ032240: to=steves, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30041, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k2ODcM9L032241 Message accepted for delivery)
Mar 25 00:38:23 m1 sendmail[32244]: k2ODcM9L032241: to=<steves@m1.metrofire.com.au>, ctladdr=<root@m1.metrofire.com.au> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30574, dsn=2.0.0, stat=Sent

"hhmmm, message still gone to /var/spool/mail/"

Thanks

Valerion
Scalix Star
Scalix Star
Posts: 2730
Joined: Thu Feb 26, 2004 7:40 am
Location: Johannesburg, South Africa
Contact:

Postby Valerion » Fri Mar 24, 2006 9:57 am

You need to re-run omsendin whenever you rebuild the sendmail.cf from the sendmail.mc.

Check the sendmail.cf to see what your DaemonPortOptions is. It should look like this:

Code: Select all

O DaemonPortOptions=Port=smtp, Addr=127.0.0.1, Name=MTA

If you needed to change it, restart sendmail, then run

Code: Select all

lsof -i:25

It should give you

Code: Select all

COMMAND    PID USER   FD   TYPE DEVICE SIZE NODE NAME
sendmail  4415 root    4u  IPv4  10003       TCP localhost.localdomain:smtp (LISTEN)
omsmtpd  10695 root    4u  IPv4 135953       TCP <machine name>:smtp (LISTEN)

If all of this is right, then sendmail should be able to bind to the SMTP port correctly, and not return the error you reported. Restart MailScanner and see if it works.

steves
Posts: 23
Joined: Mon Mar 20, 2006 10:02 pm

Postby steves » Sun Mar 26, 2006 10:02 am

Yep tried that.

[root@m1 ~]# /etc/init.d/MailScanner status
Checking MailScanner daemons:
MailScanner: [ OK ]
incoming sendmail: head: cannot open `/var/run/sendmail.in.pid' for reading: No such file or directory
[FAILED]
outgoing sendmail: [ OK ]
[root@m1 ~]# vi /etc/mail/sendmail.cf
[root@m1 ~]# lsof -i:25
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
omsmtpd 20119 root 4u IPv4 456224 TCP m1.metrofire.com.au:smtp (LISTEN)
omsmtpd 20119 root 5u IPv4 456225 TCP 10.1.1.99:smtp (LISTEN)
sendmail 32393 root 4u IPv4 470850 TCP localhost.localdomain:smtp (LISTEN)


I have an additional alias network address at the moment which I don't think matters...?

this is what happens when I send an email.

[root@m1 ~]# echo testmgs | mail -s testmsg steves@metrofire.com.au


/var/log/maillog

Mar 26 23:57:45 m1 sendmail[2948]: k2QDviCl002948: from=root, size=54, class=0, nrcpts=1, msgid=<200603261357.k2QDviCl002948@m1.metrofire.com.au>, relay=root@localhost
Mar 26 23:57:46 m1 sendmail[2949]: k2QDvje9002949: from=<root@m1.metrofire.com.au>, size=351, class=0, nrcpts=1, msgid=<200603261357.k2QDviCl002948@m1.metrofire.com.au>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Mar 26 23:57:46 m1 sendmail[2948]: k2QDviCl002948: to=steves@metrofire.com.au, ctladdr=root (0/0), delay=00:00:02, xdelay=00:00:01, mailer=relay, pri=30054, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k2QDvje9002949 Message accepted for delivery)
Mar 26 23:57:46 m1 sendmail[2953]: k2QDvje9002949: to=<steves@metrofire.com.au>, ctladdr=<root@m1.metrofire.com.au> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=scalix, pri=120351, relay=m1, dsn=2.0.0, stat=Sent (Ok)

This is interesting, when I send an email to "steves" (localuser) it goes to
/var/spool/mail/steves But when I send the message to steves@metrofire.com.au it
goes to the Scalix mailing queue (I think, that is what it looks like)

MailScanner does not scan the message ...

Thanks

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Sun Mar 26, 2006 1:25 pm

This seems to be because sendmail isn't able to understand it's own domain.

Can you run the command

Code: Select all

sendmail -d0.1 < /dev/null
and post the result.

You should see something similar to:

Code: Select all

Version 8.13.4
 Compiled with: DNSMAP HESIOD HES_GETMAILHOST LDAPMAP LOG MAP_REGEX
                MATCHGECOS MILTER MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETINET6
                NETUNIX NEWDB NIS PIPELINING SASLv2 SCANF SOCKETMAP STARTTLS
                TCPWRAPPERS USERDB USE_LDAP_INIT

============ SYSTEM IDENTITY (after readcf) ============
      (short domain name) $w = desktop
  (canonical domain name) $j = desktop.ravelox.co.uk
         (subdomain name) $m = ravelox.co.uk
              (node name) $k = desktop.ravelox.co.uk
========================================================

Recipient names must be specified


Cheers

Dave

steves
Posts: 23
Joined: Mon Mar 20, 2006 10:02 pm

Postby steves » Mon Mar 27, 2006 8:13 pm

Here is the output.

[root@m1 ~]# sendmail -d0.1 < /dev/null
Version 8.13.4
Compiled with: DNSMAP HESIOD HES_GETMAILHOST LDAPMAP LOG MAP_REGEX
MATCHGECOS MILTER MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETINET6
NETUNIX NEWDB NIS PIPELINING SASLv2 SCANF SOCKETMAP STARTTLS
TCPWRAPPERS USERDB USE_LDAP_INIT

============ SYSTEM IDENTITY (after readcf) ============
(short domain name) $w = m1
(canonical domain name) $j = m1.metrofire.com.au
(subdomain name) $m = metrofire.com.au
(node name) $k = m1.metrofire.com.au
========================================================

Recipient names must be specified
[root@m1 ~]#

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Mon Mar 27, 2006 8:18 pm

Can you run the following:

Code: Select all

sendmail -bt
and enter the command

Code: Select all

3,0 steves

Once that's done, hit CTRL-D to exit and post the output.

Cheers

Dave

steves
Posts: 23
Joined: Mon Mar 20, 2006 10:02 pm

Postby steves » Mon Mar 27, 2006 10:04 pm

[root@m1 ~]# sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> 3.0 steves
canonify input: steves
Canonify2 input: steves
Canonify2 returns: steves
canonify returns: steves
>


Thanks

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Mon Mar 27, 2006 10:05 pm

You entered 3dot0 and not 3comma0.

Cheers

Dave

steves
Posts: 23
Joined: Mon Mar 20, 2006 10:02 pm

Postby steves » Mon Mar 27, 2006 10:08 pm

Ooops,

[root@m1 ~]# sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> 3,0 steves
canonify input: steves
Canonify2 input: steves
Canonify2 returns: steves
canonify returns: steves
parse input: steves
Parse0 input: steves
Parse0 returns: steves
ParseLocal input: steves
ParseLocal returns: steves
Parse1 input: steves
Parse1 returns: $# local $: steves
parse returns: $# local $: steves


Thanks


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 16 guests