Page 1 of 2
How to Send/recv to the outside, How to create aliases?
Posted: Fri Jun 29, 2007 2:27 pm
by redthree
I installed Scalix 11.0.4-GA and am using it with the outlook connector.
I used the omaddu command to set up two “testâ€
Posted: Fri Jun 29, 2007 3:00 pm
by Shredder
Having the SMTP server partially aborted is not good.
Do an omoff -d0 -w smtp
You might get an error here. That is OK.
Do omreset -o off smtp
omon smtp
Check if working properly.
This is why outgoing mail is not working.
As for not receiving mail, do you have MX records set up? Is the machine directly on the internet or behind a firewall? If it is behind a firewall, make sure you port forward port 25 to the scalix server.
For editing and creating users, it is way easier to use SAC to do it.
Shredder
Posted: Fri Jun 29, 2007 3:04 pm
by redthree
Thanks for a quick reply
Concerning:
Shredder wrote:Do an omoff -d0 -w smtp
You might get an error here. That is OK.
Do omreset -o off smtp
omon smtp
I tried:
root@sb1 [/etc]# omoff -d0 -w smtp
omoff : [OM 4901] Sub-system not installed: 'smtp'
No subsystems shut down.
root@sb1 [/etc]# omreset -o off smtp
omsetsvc : [OM 4903] No such subsystem
root@sb1 [/etc]# omon smtp
omon : [OM 4901] Sub-system not installed: 'smtp'
No subsystems started.
root@sb1 [/etc]#
Concerning MX records, how do I set those up?
Concerning firewall, I am able to telnet from outside to ports 25, 110, and 143, and they all show scalix versions. I did notice that for some reason exim (a mail client before scalix) was running on port 25. I disabled it, and reloaded scalix, and now I am able to receive mail from the outside.
However, I am still unable to send mail to the outside. The "partially aborted" smtp relay, after I reloaded scalix, now reads as "started":
Code: Select all
root@sb1 [/usr/local/apache/htdocs_public]# service scalix status
*** sb1
PC Monitor Started NON-STOP 0
Directory Relay Server Started 14:13:23
Notification Server Started 14:13:23 0
Shared memory daemon Started NON-STOP
Notification Monitor Started NON-STOP
Session Monitor Started NON-STOP
Indexer Started NON-STOP
Stats Daemon Started NON-STOP
Container Access Monitor Started NON-STOP
Item Structure Server Stopped
Database Monitor Started 14:13:23
Licence Monitor Daemon Started NON-STOP
LDAP Daemon Started 14:13:23
Queue Manager Started NON-STOP
Item Delete Daemon Started NON-STOP
IMAP Server Daemon Started 14:13:23
SMTP Relay Started 14:13:23
Mime Browser Controller Started 14:13:23
Event Server Started 14:13:24
Service Router Started 14:13:25 0
Local Delivery Started 14:13:25 0
Internet Mail Gateway Started 14:13:25 11
Local Client Interface Enabled 14:13:25 0
Remote Client Interface Enabled 14:13:25 1
Test Server Started 14:13:25 0
Request Server Started 14:13:25 0
Print Server Started 14:13:25 0
Bulletin Board Server Started 14:13:25 0
Background Search Service Started 14:13:25 0
CDA Server Started 14:13:25 0
POP3 interface Started 14:13:25 0
Omscan Server Started 14:13:25 0
Archiver Started 14:13:25 0
Posted: Fri Jun 29, 2007 3:31 pm
by Shredder
Oops. That was my fault. It should have been smtpd not smtp. Sorry
Since it is all running fine from that, lets look into the log files.
If you are able to receive mail, then MX entries have been set up.
Can you post relevant parts from the /var/log/maillog or /var/log/mail.info file?
Shredder
Posted: Fri Jun 29, 2007 3:39 pm
by redthree
I did a tail -f /var/log/maillog, and then sent out a reply to an email from the outside.
No new lines appeared in /var/log/maillog
And no email (waiting 6 mintues now) appeared on the outside mailbox...
Note: there is no /var/log/mail.info on my machine...
Posted: Fri Jun 29, 2007 3:58 pm
by Shredder
Did you make any changes to your sendmail config file? Can you grep -i for scalix in the sendmail.cf file?
Thanks,
Shredder
Posted: Fri Jun 29, 2007 4:02 pm
by redthree
I haven't manually modified the sendmail.cf
However, grep shows some stuff:
Code: Select all
phil@redthree [/etc]# grep -i scalix /etc/mail/sendmail.cf
##### in /tmp/scalix-wizard.M12690/py
# Scalix LDAP mapper
-T<TMPF> -1 -b "" -v scalixInstanceName -k (mail=%0)
# Check for mail destined for a local Scalix server
R$+ < @ $+ . > $: $>ScalixMapper <$1 < @ $2 . >> <$1 @ $2>
### Scalix Mailer specification ###
##### $Id: scalix.m4,v 1.1 2006/10/20 10:32:19 jch Exp $ #####
SScalixMapper
# If matched by LDAP, resolve to the right Scalix mailer
R<$+> <scalix $*> <$+> $# scalix_xport $@ $1 $: scalix
R<$+> <$+> <$+> $# scalix_mime $@ $1 $: $2
Mscalix_mime, P=/opt/scalix/bin/unix.in, F=PDFMXmnu, E=\n,
Mscalix_xport, P=/opt/scalix/bin/xport.in, F=LMn,
Posted: Fri Jun 29, 2007 4:11 pm
by Shredder
OK. That's good.
Is sendmail actually running?
Shredder
Posted: Fri Jun 29, 2007 4:22 pm
by redthree
hm. sendmail was not, in fact running, even though i used the "mail" command earlier to successfully send out mail to an outside address (not sure if the two commands are related)
I started sendmail (confirming it with ps | grep), but still cannot send out an email using scalix via outlook connector.
If you have aim, you can contact me at my s/n: quakephil
Thanks for your help so far!
Phil
Posted: Fri Jun 29, 2007 4:29 pm
by Shredder
Using mail does not actually use sendmail to send the message.
Are any messages going through the logs now?
Are there still messages stuck in the Mail Gateway (omstat -s)?
Shredder
Posted: Fri Jun 29, 2007 4:35 pm
by redthree
It seems that sendmail is dying whenever I try to send a message...
There are no new lines in /var/log/maillog
ps -ef | grep -i sendmail; no longer returns the pid for sendmail
service sendmail status says:
"sendmail dead but subsys locked"
Mail gateway is indeed increasing with what looks like more test emails getting queued:
Code: Select all
root@sb1 [/var/log]# service sendmail status
sendmail dead but subsys locked
root@sb1 [/var/log]# omstat -s
Service Router Started 14:13:25 0
Local Delivery Started 14:13:25 0
Internet Mail Gateway Started 14:13:25 15
Local Client Interface Enabled 14:13:25 0
Remote Client Interface Enabled 14:13:25 1
Test Server Started 14:13:25 0
Request Server Started 14:13:25 0
Print Server Started 14:13:25 0
Bulletin Board Server Started 14:13:25 0
Background Search Service Started 14:13:25 0
CDA Server Started 14:13:25 0
POP3 interface Started 14:13:25 0
Omscan Server Started 14:13:25 0
Archiver Started 14:13:25 0
Posted: Fri Jun 29, 2007 4:45 pm
by Shredder
Is there anything in /var/log/messages for it?
We have to figure out why sendmail is crashing. Try tailing both messages and maillog when you start sendmail. There should be something logged.
Shredder
Posted: Fri Jun 29, 2007 4:47 pm
by redthree
Update:
it seems sendmail wont start because some subsystem of scalix is blocking it (possibly smtpd?)
/var/log/exim_mainlog (populated by exim which sendmail calls, i believe) gives messages such as:
Code: Select all
2007-06-29 15:18:31 socket bind() to port 25 for address (any IPv4) failed: Address already in use: waiting 30s before trying again (9 more tries)
2007-06-29 15:19:01 socket bind() to port 25 for address (any IPv4) failed: Address already in use: waiting 30s before trying again (8 more tries)
2007-06-29 15:19:31 socket bind() to port 25 for address (any IPv4) failed: Address already in use: waiting 30s before trying again (7 more tries)
2007-06-29 15:20:01 socket bind() to port 25 for address (any IPv4) failed: Address already in use: waiting 30s before trying again (6 more tries)
2007-06-29 15:20:31 socket bind() to port 25 for address (any IPv4) failed: Address already in use: waiting 30s before trying again (5 more tries)
2007-06-29 15:21:01 socket bind() to port 25 for address (any IPv4) failed: Address already in use: waiting 30s before trying again (4 more tries)
2007-06-29 15:21:31 socket bind() to port 25 for address (any IPv4) failed: Address already in use: waiting 30s before trying again (3 more tries)
2007-06-29 15:22:01 socket bind() to port 25 for address (any IPv4) failed: Address already in use: waiting 30s before trying again (2 more tries)
2007-06-29 15:22:31 socket bind() to port 25 for address (any IPv4) failed: Address already in use: waiting 30s before trying again (1 more try)
2007-06-29 15:23:01 socket bind() to port 25 for address (any IPv4) failed: Address already in use: daemon abandoned
The "sendmail dead" message just means sendmail (exim) exited abnormally and didnt fully clean up after itself, I think. (There is an entry in /var/lock/subsys/sendmail but not in /var/run/sendmail*)
Posted: Fri Jun 29, 2007 4:56 pm
by Shredder
Do you have exim running?? That won't work. Scalix uses sendmail or postfix. That is it.
Shredder
Posted: Tue Jul 03, 2007 11:06 am
by redthree
Shredder wrote:Do you have exim running?? That won't work. Scalix uses sendmail or postfix. That is it.
Shredder
I am still unable to send/receive to outside, using scalix... This is really frustrating.
If I do "service exim stop && service sendmail start && service exim status" I see:
Code: Select all
root@redthree [/var/log]# service exim stop && service sendmail start && service exim status
Shutting down exim: [ OK ]
Starting sendmail: [ OK ]
exim (pid 16874) is running...
root@redthree [/var/log]#Which leads me to believe exim is integrated into sendmail or is identical.
I'm running "Red Hat Enterprise Linux ES release 4 (Nahant Update 5)" so whatever sendmail configuration I have came standard with this OS.
I still have messages backed up in "Internet Mail Gateway" when I do omstat -s:
Code: Select all
root@redthree [/var/log]# omstat -s
Service Router Started 09:56:46 0
Local Delivery Started 09:56:46 0
Internet Mail Gateway Started 09:56:46 15
Local Client Interface Enabled 09:56:46 0
Remote Client Interface Enabled 09:56:46 0
Test Server Started 09:56:46 0
Request Server Started 09:56:46 0
Print Server Started 09:56:46 0
Bulletin Board Server Started 09:56:46 0
Background Search Service Started 09:56:46 0
CDA Server Started 09:56:47 0
POP3 interface Started 09:56:47 0
Omscan Server Started 09:56:47 0
Archiver Started 09:56:47 0
Can someone help me with this problem; at least point me to a FAQ or a manual somewhere, because as it is now I cannot use scalix at all for its intended purpose...
Many thanks in advance,
Phil