Impossible to send mails to other servers

Discuss installation of Scalix software

Moderators: ScalixSupport, admin

phuel
Posts: 13
Joined: Mon Apr 02, 2007 5:03 am

Impossible to send mails to other servers

Postby phuel » Mon Apr 02, 2007 5:25 am

Hi guys,

internal mailing (Ubuntu 6.10) works fine but sending mails to other servers just didn't succeed
Habe already smtpd debug log enabled (no errors reported)

The mail are on SAC in the "Internet Mail Gateway Queue"

/var/spool/mail is empty

/var/log/mail says

Code: Select all

Apr  2 11:20:11 mail ldapmapper[3017]: cannot send search request to instance mail: Can't contact LDAP server
Apr  2 11:20:11 mail sm-mta[3799]: l329KBkd003799: SYSERR(root): Error getting LDAP results in map ldapsx: Can't contact LDAP server


but I think this is another error (ldapmapper is up and running as mentioned in other threads)

Anyone any ideas? ;)

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

Postby ScalixSupport » Mon Apr 02, 2007 6:31 am

Hi!

Please post the uncommented lines for smtpd.cfg file? Also reply with the result of the
command "lsof -i:25". Check if sendmail is running.

Thanks,
Subir

phuel
Posts: 13
Joined: Mon Apr 02, 2007 5:03 am

Postby phuel » Mon Apr 02, 2007 6:42 am

Code: Select all

root@mail:~# lsof -i:25
COMMAND    PID USER   FD   TYPE DEVICE SIZE NODE NAME
sendmail- 3136 root    4u  IPv4   5838       TCP localhost:smtp (LISTEN)
omsmtpd   3282 root    5u  IPv4   6201       TCP mail.<domain>.de:smtp (LISTEN)

Code: Select all

root@mail:~# cat /var/opt/scalix/ml/s/sys/smtpd.cfg | grep -v "#"
DEBUG_LOG=TRUE


EXTENSIONS=AUTH,DSN,8BITMIME



RELAY accept 127.0.0.1
RELAY accept mail.<domain>.de
RELAY Log_Reject ALL

RECIPIENT Log_Reject *@*@*
RECIPIENT Log_Reject *%*
RECIPIENT Log_Reject *!*

[SUBMIT]
ANONYMOUS Log_Reject ALL



[LMTP]
LISTEN=localhost:24

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

Postby ScalixSupport » Mon Apr 02, 2007 6:51 am

Hi!

Do you see any error in /var/opt/scalix/??/ss/logs/fatal and /var/log/maillog?

Thanks,
Subir

phuel
Posts: 13
Joined: Mon Apr 02, 2007 5:03 am

Postby phuel » Mon Apr 02, 2007 7:01 am

Code: Select all

root@mail:~# cat /var/opt/scalix/ml/s/logs/fatal

ERROR                   Browser       (Service 14    ) Thu Mar 29 15:38:57 2007
[OM 0]
Pid of logging process: 5595
  Last Msg Id: 18602599.371175175527006.JavaMail.root(a)mail.<domain>.de
  Last Msg DirectRef: 000112374a28a121


ERROR                   Browser       (Service 14    ) Mon Apr  2 10:47:59 2007
[OM 0]
Pid of logging process: 3511
  Last Msg Id: 18602599.371175175527006.JavaMail.root(a)mail.<domain>.de
  Last Msg DirectRef: 0001123adaafba23


and as already mentioned only

Code: Select all

Apr  2 12:58:28 mail ldapmapper[3017]: cannot send search request to instance mail: Can't contact LDAP server
Apr  2 12:58:28 mail sm-mta[3888]: l2TDUnur006650: SYSERR(root): Error getting LDAP results in map ldapsx: Can't contact LDAP server


but ldapmapper is up and running and internal mail including addressbook functions are working fine

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

Postby ScalixSupport » Mon Apr 02, 2007 7:14 am

Hi!

After adding the line DEBUG_LOG=TRUE, did you restart smtpd, if not you can do this using
the commands below, which would create logs at /var/opt/scalix/??/s/tmp/smtpd-SMTP.log

Code: Select all

omoff -wd 0 smtpd
omon smtpd

Did you manipulate the fatal log,
ERROR Browser (Service 14 ) Mon Apr 2 10:47:59 2007
[OM 0]

[OM 0] seems to be surprising. Can you run "omtidyallu -M" to pre-generate MIME.

Thanks,
Subir

phuel
Posts: 13
Joined: Mon Apr 02, 2007 5:03 am

Postby phuel » Mon Apr 02, 2007 7:24 am

smtpd debug log

Code: Select all

Accepted client 1 from  (mail.<domain>.de)
Cli 3282/1 sent  : 220 mail.<domain>.de ESMTP Scalix SMTP Relay 11.0.2.17; Mon, 02 Apr 2007 10:56:10 +0200 (CEST)

Cli 3282/1 rcvd: 'EHLO mail.<domain>.de'
Cli 3282/1 sent  : 250-mail.<domain>.de Hello mail.<domain>.de [88.198.XXX.XXX], pleased to meet you
        250-AUTH LOGIN CRAM-MD5 GSSAPI DIGEST-MD5 PLAIN
        250-AUTH=LOGIN
        250-DSN
        250 8BITMIME

Cli 3282/1 rcvd: 'AUTH LOGIN'
Cli 3282/1 sent  : 334 VXNlcd5hbWU6

Cli 3282/1 sent  : 334 UGFzc3dvdmQ6

smtpd:sasl_canon_user: "user" -> "user"
smtpd:userdb_checkpass: check PAM password for "user"
Cli 3282/1 sent  : 235 Authentication successful

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

Cli 3282/1 rcvd: 'MAIL FROM:<user@mail.<domain>.de>'
Cli 3282/1 sent  : 250 user@mail.<domain>.de... Sender ok

Cli 3282/1 rcvd: 'RCPT TO:<foo@ba.r> NOTIFY=FAILURE,DELAY'
  ... new process 3676
3282: Allocate new unix.in process 3676
Cli 3282/1 rcvd U: '220 Scalix ESMTP Ready.'
Cli 3282/1 rcvd U: '250 Ok'
Cli 3282/1 sent U: rcpt to: <foo@ba.r> NOTIFY=FAILURE,DELAY

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

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

Cli 3282/1 sent U: data

Cli 3282/1 rcvd U: '354 Enter mail, end with "." on a line by itself.'
Cli 3282/1 got .
Cli 3282/1 sent U: Received: from mail.<domain>.de (mail.<domain>.de [88.198.XXX.XXX])
            by mail.<domain>.de (Scalix SMTP Relay 11.0.2.17)
            via ESMTP; Mon, 02 Apr 2007 10:56:10 +0200 (CEST)
        Message-ID: <33340097.41175504170580.JavaMail.root@mail.<domain>.de>
        Date: Mon, 2 Apr 2007 10:56:10 +0200 (CEST)
        From: "user" <user@mail.<domain>.de>
        To: foo@ba.r
        Subject: asdf
        MIME-Version: 1.0
        Content-Type: multipart/alternative;
                boundary="----=_Part_0_58130.1175504170564"
        X-Scalix-Id: user@<domain>.de
        X-Mailer: Scalix 11.0.2.23
        X-MSMail-Priority: medium

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

        jkl;
        ------=_Part_0_58130.1175504170564
        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;">jkl;</body></html>
        ------=_Part_0_58130.1175504170564--

        .

Cli 3282/1 rcvd U: '250 Ok'
Cli 3282/1: Submitted message ': <33340097.41175504170580.JavaMail.root@mail.<domain>.de>' to unix.in.
        response: '250 Ok'
Cli 3282/1 Finished submitting msg  : <33340097.41175504170580.JavaMail.root@mail.<domain>.de>
Cli 3282/1 sent  : 250 Ok

Cli 3282/1 rcvd: 'QUIT'
Cli 3282/1 sent  : 221 mail.<domain>.de closing connection


I just edited the log replacing my domain with <domain>, but nothing else

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

Postby ScalixSupport » Mon Apr 02, 2007 7:31 am

Hi!

Add your domain to /et/mail/local-host-names and restart sendmail.

Thanks,
Subir

phuel
Posts: 13
Joined: Mon Apr 02, 2007 5:03 am

Postby phuel » Mon Apr 02, 2007 7:39 am

had already been there and restarting didn't help

Is is perhaps possible that there is a relation to the ldap error in maillog?

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

Postby ScalixSupport » Mon Apr 02, 2007 7:41 am

Hi!

Try restarting ldap server, also check the port mentioned in the swa.properties at location
/var/opt/scalix/??/webmail suits your requirement.

Thanks,
Subir

phuel
Posts: 13
Joined: Mon Apr 02, 2007 5:03 am

Postby phuel » Mon Apr 02, 2007 8:16 am

I think everything should be fine with the config. double checked the ldap ports but they are correct, too

I also tried to send a mail using smtp with an external program. Mail was send but then also got strucked in queue

/var/log/mail.log

Code: Select all

Apr  2 14:07:41 mail ldapmapper[3017]: cannot send search request to instance mail: Can't contact LDAP server
Apr  2 14:07:41 mail sm-mta[4563]: l32C7fZ2004563: SYSERR(root): Error getting LDAP results in map ldapsx: Can't contact LDAP server

which cfg's are related to this errors?

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

Postby ScalixSupport » Mon Apr 02, 2007 8:22 am

Hi!

I am sure this would help you :):
http://www.scalix.com/wiki/index.php?ti ... t_from_389

Thanks,
Subir

phuel
Posts: 13
Joined: Mon Apr 02, 2007 5:03 am

Postby phuel » Mon Apr 02, 2007 9:05 am

THANKS ;)

problem solved
I forgot to change the port in the ldapmapper config
now everything works fine

thanks again for your effort and the really fast responses
great community support ;)

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

Postby ScalixSupport » Mon Apr 02, 2007 9:14 am

Excellent.

Regards,
Subir :wink:


Return to “Installation”



Who is online

Users browsing this forum: No registered users and 4 guests

cron