Page 1 of 1

outgoing Mail in queue

Posted: Wed Jun 27, 2007 6:53 am
by Grobi
Hi everybody,
we have the following setup:

scalix -> smtp-proxy -> internet

we can:
- receive and send mails locally
- receive mails from the internet

we cannot:
- send mails to internet

any opinions??

Posted: Wed Jun 27, 2007 7:17 am
by btisdall
Can you post logging output from sendmail when you attempt to send to external recipients - this is usually found in /var/log/maillog or /var/log/mail.log.

Posted: Wed Jun 27, 2007 7:50 am
by Grobi
there aren't any useful information - i'm running the latest scalix on fc5

Posted: Wed Jun 27, 2007 8:48 am
by btisdall
Define 'useful' - can you see the messages being handed off from Scalix to sendmail or not?

If they're not making it as far as sendmail you should see them queuing up on the internet mail gateway - you can inspect this with:

Code: Select all

omstat -q unix

Posted: Wed Jun 27, 2007 8:50 am
by jaime.pinto
open 2 shells on the server:
1) from one do a tail -f /var/loig/maillog
2) from the other send an email with Mail externaluser@externaldomain.com

post the last couple of lines from the tail

Posted: Wed Jun 27, 2007 9:56 am
by Grobi
Hi again,
it seems to work now, but the mailheader looks strange... but let me give you some extra input

- the mailserver has an internal ip and an internal hostname (192.168.0.98 / scalix.mylocaldomain)
- the relay has the mx- and a-record mailtest.ourcompany.com

Now i sent a mail from scalix to a freemail-account and this is the header:

[...]

Received: from [213.209.xxx.xxx] (helo=mailtest.ourcompany.com) by mx19.web.de with esmtp (WEB.DE 4.107 #114) id 1I3XYu-0006bM-00 for grobi@web.de; Wed, 27 Jun 2007 15:28:00 +0200

Received: from [192.168.10.98] (helo=scalix.mylocaldomain) by mailtest.ourcompany.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.43) id 1I3XYr-0004NH-3E for grobi@web.de; Wed, 27 Jun 2007 15:27:57 +0200

Received: from scalix.mylocaldomain (localhost.localdomain [127.0.0.1]) by scalix.mylocaldomain (8.13.8/8.13.8) with ESMTP id l5RDSGKf004548 for <grobi@web.de>; Wed, 27 Jun 2007 15:28:16 +0200

Received: from mylaptop.mylocaldomain (localhost.localdomain [127.0.0.1]) by scalix.mylocaldomain (Scalix SMTP Relay 11.1.0.10849) via ESMTP; Wed, 27 Jun 2007 15:28:16 +0200 (CEST)

Is this indicating for a loop?

*EDIT*
If i try sending to another freemail-provider (1&1 and sometimes GMX) i receive a Return Mail:

----- Transcript of session follows -----
554 5.4.6 Too many hops 26 (25 max): from <grobi@mailtest.ourcompany.com> via localhost, to <grobi@1und1.de>

... maillog says the same as the mail

Posted: Wed Jun 27, 2007 11:31 am
by btisdall
First one looks normal, second one looks like a routing loop resulting from your message being rejected - are you sure that <grobi@mailtest.ourcompany.com> is a valid recipient at your end?

Posted: Mon Jul 02, 2007 5:04 am
by Grobi
hi all,
seems to work right now since i started sendmail :)

all outgoing mail now have localhost.localdomain in their header (from sendmail??) - but it would be nice if there would be a smarter name... like smtp.mydomain or so... how can i configure it??

Posted: Wed Jul 04, 2007 7:35 am
by Grobi
*push*

Posted: Sun Jul 08, 2007 5:26 am
by btisdall
Can you post an example of the entire headers Grobi.

Posted: Mon Jul 09, 2007 11:36 am
by Grobi

Code: Select all

from scalix.mylocaldomain (localhost.localdomain [127.0.0.1])   by scalix.mylocaldomain (8.13.8/8.13.8) with ESMTP id l69CP41h007093   for <grobi@web.de>; Mon, 9 Jul 2007 14:25:04 +0200

this is the important line of the header. i think it's caused because sendmail is configured to listen on 127.0.0.1:25 ...

Posted: Tue Jul 10, 2007 11:07 am
by Grobi
hmm, i thougt i can solve this by adding another (virtual) ip to the server... 192.168.10.50 for example and add

Code: Select all

DAEMON_OPTIONS(`Port=smtp,Addr=192.168.10.50, Name=MTA')dnl

to sendmail.mc... but now all mails are in the queue again. why?

Posted: Wed Jul 11, 2007 7:03 am
by Grobi
mkay, now i did the following changes to get it work...

sendmail-daemon is on 192.168.10.50 (/etc/mail/sendmail.mc)

Code: Select all

DAEMON_OPTIONS(`Port=smtp,Addr=192.168.10.50, Name=MTA')dnl


unix.mapper is now configured as (/var/opt/scalix/ml/s/sys/unix.mapper)

Code: Select all

transport-service = inet:192.168.10.50:25


and sendmail should accept this (/etc/mail/access && make)

Code: Select all

Connect:192.168.10.50                   RELAY


i hope i didn't made stupid things... any feedback???!