outgoing Mail in queue

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

Grobi
Posts: 11
Joined: Tue Jun 19, 2007 8:28 am

outgoing Mail in queue

Postby Grobi » Wed Jun 27, 2007 6:53 am

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??

btisdall
Scalix Star
Scalix Star
Posts: 373
Joined: Tue Nov 22, 2005 12:13 pm
Contact:

Postby btisdall » Wed Jun 27, 2007 7:17 am

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.
Ben Tisdall
www.redcircleit.com
London

Grobi
Posts: 11
Joined: Tue Jun 19, 2007 8:28 am

Postby Grobi » Wed Jun 27, 2007 7:50 am

there aren't any useful information - i'm running the latest scalix on fc5

btisdall
Scalix Star
Scalix Star
Posts: 373
Joined: Tue Nov 22, 2005 12:13 pm
Contact:

Postby btisdall » Wed Jun 27, 2007 8:48 am

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
Ben Tisdall

www.redcircleit.com

London

jaime.pinto
Scalix Star
Scalix Star
Posts: 709
Joined: Fri Feb 23, 2007 6:50 pm
Location: Toronto - Canada

Postby jaime.pinto » Wed Jun 27, 2007 8:50 am

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
Image Jaime
||||||||||||||||||||||||||||||||||||||||

Grobi
Posts: 11
Joined: Tue Jun 19, 2007 8:28 am

Postby Grobi » Wed Jun 27, 2007 9:56 am

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

btisdall
Scalix Star
Scalix Star
Posts: 373
Joined: Tue Nov 22, 2005 12:13 pm
Contact:

Postby btisdall » Wed Jun 27, 2007 11:31 am

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?
Ben Tisdall

www.redcircleit.com

London

Grobi
Posts: 11
Joined: Tue Jun 19, 2007 8:28 am

Postby Grobi » Mon Jul 02, 2007 5:04 am

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??

Grobi
Posts: 11
Joined: Tue Jun 19, 2007 8:28 am

Postby Grobi » Wed Jul 04, 2007 7:35 am

*push*

btisdall
Scalix Star
Scalix Star
Posts: 373
Joined: Tue Nov 22, 2005 12:13 pm
Contact:

Postby btisdall » Sun Jul 08, 2007 5:26 am

Can you post an example of the entire headers Grobi.
Ben Tisdall

www.redcircleit.com

London

Grobi
Posts: 11
Joined: Tue Jun 19, 2007 8:28 am

Postby Grobi » Mon Jul 09, 2007 11:36 am

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 ...

Grobi
Posts: 11
Joined: Tue Jun 19, 2007 8:28 am

Postby Grobi » Tue Jul 10, 2007 11:07 am

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?

Grobi
Posts: 11
Joined: Tue Jun 19, 2007 8:28 am

Postby Grobi » Wed Jul 11, 2007 7:03 am

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???!


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 3 guests

cron