Unable to sent to external mail via SWA

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

niceweb

Unable to sent to external mail via SWA

Postby niceweb » Thu Dec 21, 2006 8:10 am

I have installed scalix 11.0.0.613 on Fedora Core 5 (2.6.9-023stab033.7-smp)

Via Web Mail interface i send to internal accounts and it works fine. But if i send a message to an external mail, it was moved into Drafts folder and in the "/var/log/messages" i see:

Dec 21 12:45:58 scalix saslauthd[15575]: do_auth : auth failure: [user=amatizi] [service=smtp] [realm=scalix.niceweb.it] [mech=pam] [reason=PAM auth error]

my smtp.cfg file is "/var/opt/scalix/sx/s/sys/smtpd.cfg" :

EXTENSIONS=AUTH,DSN,8BITMIME
RELAY accept 127.0.0.1
RELAY accept 212.35.207.247
RELAY accept .niceweb.it
RELAY Log_Reject ALL
RECIPIENT Log_Reject *@*@*
RECIPIENT Log_Reject *%*
RECIPIENT Log_Reject *!*
RECIPIENT Log_Reject *#*@*
[SUBMIT]
ANONYMOUS Log_Reject ALL
[LMTP]
LISTEN=localhost:24

Any idea ?
Thanks!

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

Postby ScalixSupport » Thu Dec 21, 2006 10:17 am

Hi!

I request you to add following line to your /var/opt/scalix/sx/s/sys/smtpd.cfg

Code: Select all

DEBUG_LOG=TRUE


and restart relay with

Code: Select all

omoff -d0 smtpd
omon smtpd


This will generate a logfile at /var/opt/scalix/sx/s/tmp/smtpd-SMTP.log.

Try sending a message again and then take a copy of the log file that is generated.

If you can post the log file (edit it for security if required ) then we can see what's
going on.

NB: Turn off the debugging once you have finished as this can cause a number of
problems if the log file grows over 2Gb.

Thanks,
Subir

niceweb

Postby niceweb » Thu Dec 21, 2006 10:54 am

I've stopped xinetd sendmail service and restartet smtpd from SX Admin.

Now email was moved to "Sent mail" but on SX Admin i'have messages in the "internet Mail Gateway" that are not sent to destination.

in the log file i've pnly this:

SMTP Relay 11.0.0.403-rc1 started (3364): Thu, 21 Dec 2006 15:52:27 +0100 (CET) for LMTP


Thanks

niceweb

Postby niceweb » Thu Dec 21, 2006 11:47 am

This is the SMTP LOG File

SMTP Relay 11.0.0.403-rc1 started (14249): Thu, 21 Dec 2006 16:46:58 +0100 (CET) for SMTP
Accepted client 1 from (scalix.niceweb.it)
Cli 14249/1 sent : 220 scalix.niceweb.it ESMTP Scalix SMTP Relay 11.0.0.403-rc1; Thu, 21 Dec 2006 16:47:27 +0100 (CET)

Cli 14249/1 rcvd: 'EHLO scalix.niceweb.it'
Cli 14249/1 sent : 250-scalix.niceweb.it Hello scalix.niceweb.it [212.35.207.247], pleased to meet you
250-AUTH PLAIN LOGIN DIGEST-MD5 CRAM-MD5 GSSAPI
250-AUTH=LOGIN
250-DSN
250 8BITMIME

Cli 14249/1 rcvd: 'AUTH LOGIN'
Cli 14249/1 sent : 334 VXNlcm5hbWU6

Cli 14249/1 sent : 334 UGFzc3dvcmQ6

smtpd:sasl_canon_user: "amatizi@scalix.niceweb.it" -> "amatizi@scalix.niceweb.it"
smtpd:userdb_checkpass: check PAM password for "amatizi@scalix.niceweb.it"
Cli 14249/1 sent : 235 Authentication successful

Cli 14249/1 rcvd: 'NOOP'
Cli 14249/1 sent : 250 OK

Cli 14249/1 rcvd: 'MAIL FROM:<amatizi@scalix.niceweb.it>'
Cli 14249/1 sent : 250 amatizi@scalix.niceweb.it... Sender ok

Cli 14249/1 rcvd: 'RCPT TO:<amatizi@nice.it> NOTIFY=FAILURE,DELAY'
... new process 14277
14249: Allocate new unix.in process 14277
Cli 14249/1 rcvd U: '220 Scalix ESMTP Ready.'
Cli 14249/1 rcvd U: '250 Ok'
Cli 14249/1 sent U: rcpt to: <amatizi@nice.it> NOTIFY=FAILURE,DELAY

Cli 14249/1 rcvd U: '250 Ok'
Cli 14249/1 sent : 250 Ok

Cli 14249/1 rcvd: 'DATA'
Cli 14249/1 sent : 354 Enter mail, end with "." on a line by itself (relay)

Cli 14249/1 sent U: data

Cli 14249/1 rcvd U: '354 Enter mail, end with "." on a line by itself.'
Cli 14249/1 got .
Cli 14249/1 sent U: Received: from scalix.niceweb.it (scalix.niceweb.it [212.35.207.247])
by scalix.niceweb.it (Scalix SMTP Relay 11.0.0.403-rc1)
via ESMTP; Thu, 21 Dec 2006 16:47:27 +0100 (CET)
Message-ID: <31969579.71166716047262.JavaMail.root@scalix.niceweb.it>
Date: Thu, 21 Dec 2006 16:47:27 +0100 (CET)
From: Alessandro Amatizi <amatizi@scalix.niceweb.it>
To: Alessandro Amatizi <amatizi@nice.it>
Subject: test
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_Part_1_25225124.1166716047259"
X-Scalix-Id: amatizi@scalix.niceweb.it@scalix.niceweb.it
X-Mailer: Scalix 11.0.0.613
X-MSMail-Priority: medium

------=_Part_1_25225124.1166716047259
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

test
------=_Part_1_25225124.1166716047259
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<html><head></head><body style="font-family: times new roman,new york,times,serif; font-size: 12pt;">test</body></html>
------=_Part_1_25225124.1166716047259--

.

Cli 14249/1 rcvd U: '250 Ok'
Cli 14249/1: Submitted message ': <31969579.71166716047262.JavaMail.root@scalix.niceweb.it>' to unix.in.
response: '250 Ok'
Cli 14249/1 Finished submitting msg : <31969579.71166716047262.JavaMail.root@scalix.niceweb.it>
Cli 14249/1 sent : 250 Ok

Cli 14249/1 rcvd: 'QUIT'
Cli 14249/1 sent : 221 scalix.niceweb.it closing connection

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

Postby ScalixSupport » Fri Dec 22, 2006 5:22 am

Hi!

I searched the forum and found the following two posts, see if they help you. They are:

http://www.scalix.com/community/viewtopic.php?t=952
http://www.scalix.com/community/viewtopic.php?t=2234

Please make sure that
the forward and reverse lookups for the server work fine for the server.


Also check if
the /etc/hosts file have an entry for 127.0.0.1 localhost.localdomain localhost


Please feel free to reply with your concerns.

Warm Regards,
Subir

niceweb

Postby niceweb » Fri Dec 22, 2006 10:07 am

This is my hosts file:

127.0.0.1 localhost localhost.localdomain
212.35.207.247 scalix.niceweb.it scalix

AND reverse lookup work fine.


-bash-3.1# ping scalix.niceweb.it
PING scalix.niceweb.it (212.35.207.247) 56(84) bytes of data.
64 bytes from scalix.niceweb.it (212.35.207.247): icmp_seq=1 ttl=64 time=0.058 ms

niceweb

Postby niceweb » Fri Dec 22, 2006 10:25 am

i have send the "omcheck -i -s" coomand e restarted scalix. In the scalix FATAl log i have.

ERROR Administration(Scalix Admin C) Fri Dec 22 15:18:47 2006
[SYS 2] No such file or directory
Pid of logging process: 25814
Current errno value: 2


ERROR Administration(Scalix Admin C) Fri Dec 22 15:19:37 2006
[SYS 2] No such file or directory
Pid of logging process: 27897
Current errno value: 2

niceweb

Postby niceweb » Fri Dec 22, 2006 10:44 am

Can be the problem related to reverse lookup ?

-bash-3.1# nslookup 212.35.207.247

Server: 212.35.206.22
Address: 212.35.206.22#53

247.207.35.212.in-addr.arpa name = ip247-207.niceweb.it.

-bash-3.1#

niceweb

Postby niceweb » Fri Dec 22, 2006 5:38 pm

It seems that the xinetd sendmail service listen on all interfaces

-bash-3.1# omoff -d0 smtpd
Disabling 1 subsystem(s).
-bash-3.1# chkconfig sendmail on
-bash-3.1# service xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
-bash-3.1# lsof -i :25
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
xinetd 21607 root 5u IPv4 28396905 TCP *:smtp (LISTEN)

i'hve tried this
sent msg to external addres from Webmail
stopped scalix smtpd
started xinetd

the message was deliverde to external mailbox and the Internet Mail Gatweay queue is empty !

Then

-bash-3.1# chkconfig sendmail off
-bash-3.1# service xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
-bash-3.1# omon smtpd
Enabling 1 subsystem(s).
-bash-3.1# lsof -i :25
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
omsmtpd 21663 root 5u IPv4 28398694 TCP scalix.niceweb.it:smtp (LISTEN)


I'have also modified /etc/mail/sendmail.mc file with Addr=127.0.0.1 directive but it was ignored by xinetd!!!

kmcelwain
Posts: 89
Joined: Wed May 10, 2006 5:42 pm
Location: Homer, GA
Contact:

Postby kmcelwain » Sat Dec 23, 2006 11:27 pm

I have a thread open on this same topic...I finally got something back.

MSN of all things shed some light

Basically it resolved the name but the server send the localhost.localdomain in the email header....this is not well received by these mail servers apparently. Yahoo didn't mind, to funny
Karl McElwain
Banks County School System
If you look hard enough you can find it for free.

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

Postby ScalixSupport » Mon Dec 25, 2006 4:21 am

Hi niceweb,

Do you see the issue resolved as you were able to send message to external mailbox.

Kindly update.

Thanks,
Subir

niceweb

Postby niceweb » Wed Dec 27, 2006 8:04 am

Messages was succesgfully delivered to sendmai but it return this error message:

Message could not be delivered to the following recipient:
amatizi@nice.it
because: A mail transport failure occurred

Supplementary Information:
554 Too many hops

Reporting-MTA: smtp; scalix.niceweb.it
DSN-Gateway: dns; scalix.niceweb.it

Final-Recipient: rfc822;amatizi@nice.it
Action: failed
Status: 5.3.0
x-scalix-Reason-Code: 5

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

Postby ScalixSupport » Thu Dec 28, 2006 6:59 am

Hi!

What is the result for the command:

Code: Select all

lsof -i :25


Also, Karl has mentioned about the following post, I suppose:
http://www.scalix.com/community/viewtopic.php?t=5347

Thanks,
Subir

niceweb

Postby niceweb » Thu Dec 28, 2006 11:19 am

Hi,

the output is:

-bash-3.1# lsof -i :25
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
omsmtpd 1620 root 5u IPv4 31045665 TCP scalix.niceweb.it:smtp (LISTEN)

Thanks..

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

Postby ScalixSupport » Fri Dec 29, 2006 6:58 am

Hi!

For me it is:

[root@subir-rhel4 ~]# lsof -i :25
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
sendmail 2198 root 3u IPv4 5303 TCP localhost.localdomain:smtp (LISTEN)
omsmtpd 7704 root 5u IPv4 47522 TCP subir-rhel4.scalix.co.in:smtp (LISTEN)
[root@subir-rhel4 ~]#


Let me see what stops you to only have omsmtpd listed while sendmail does not appear.

Warm Regards,
Subir


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 15 guests