Page 1 of 1

SMTP Relay Partially Aborted - Revisited

Posted: Tue Nov 01, 2011 9:54 am
by kejpa
Hi,
new server installation and I'm back 2½ years...
I can get mail through SWA but not send. I get the same error message:
Due to a failure to establish a connection, the message could not be sent.
Please try again later. A copy of the message has been placed into your 'Drafts' folder.


Looking in old posts I find that it's probably becuse the SMTP servide is Partially Aborted. But unfortunately I never got an answer on how to solve it. I installed the latest version and then it worked.
Now I have the same latest version and it won't work :(

Looking at the old thread (http://www.scalix.com/forums/viewtopic.php?f=5&t=12466) gives me a few hints:

Code: Select all

[root@mandrake ~]# lsof -i :25
COMMAND   PID USER   FD   TYPE   DEVICE SIZE NODE NAME
sendmail 3865 root    4u  IPv4 10382958       TCP *:smtp (LISTEN)

There is no Scalix service using port 25, as I guess there should be.

Any help is as always appreciated!
/Kjell

Re: SMTP Relay Partially Aborted - Revisited

Posted: Wed Nov 02, 2011 7:21 am
by mmas
suggestions:

service sendmail stop
lsof -i :25

stop unused services (dovecot, spamassassin,...)

service sendmail start

Do an omoff -d0 -w smtp
You might get an error here. That is OK.
Do omreset -o off smtp
omon smtp
[ http://www.scalix.com/forums/viewtopic.php?p=36427 ]

See: http://www.scalix.com/forums/viewtopic.php?f=5&t=1790&start=0

Re: SMTP Relay Partially Aborted - Revisited

Posted: Wed Nov 02, 2011 8:19 am
by les
kejpa wrote:Hi,

Looking at the old thread (http://www.scalix.com/forums/viewtopic.php?f=5&t=12466) gives me a few hints:

Code: Select all

[root@mandrake ~]# lsof -i :25
COMMAND   PID USER   FD   TYPE   DEVICE SIZE NODE NAME
sendmail 3865 root    4u  IPv4 10382958       TCP *:smtp (LISTEN)

There is no Scalix service using port 25, as I guess there should be.

/Kjell


Hi,

If sendmail is listening on all interfaces (as from above), then thats where the problem is. Sendmail should only listen on localhost. Scalix will take the reset of the interfaces for its smtp service (omsmtpd).

Set sendmail to listen on localhost only....

vi /etc/mail/sendmail.mc

uncomment....
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
save and quit.
then
make -C /etc/mail
service sendmail restart
then restart scalix smtp
omoff -d0 smtpd
omon smtpd
then lsof should look something like this...

# lsof -i :25
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
sendmail 24203 root 4u IPv4 9229566 TCP localhost.localdomain:smtp (LISTEN)
omsmtpd 26568 root 4u IPv4 9724577 TCP<yourservernamehere>:smtp (LISTEN)

Re: SMTP Relay Partially Aborted - Revisited

Posted: Thu Nov 03, 2011 3:50 pm
by kejpa
Thanks!

Allowing sendmail only to operate the local delivery did the trick.

Best regards
/Kjell