Outgoing Mails --> Domain

Discuss installation of Scalix software

Moderators: ScalixSupport, admin

Sush

Outgoing Mails --> Domain

Postby Sush » Wed Jan 03, 2007 6:16 am

hi,

I want to use scalix with my external mail provider.
I've installed scalix on a small linux box with the domain
scalix.mydomain.tld and use fetchmail to fetch the mails from my
external provider mydomain.tld .

Outgoing mails have the sender address user@scalix.mydomain.tld ,
but it should be user@mydomain.tld .

How can change this behaviour?


thanks so far
Sascha

florian
Scalix
Scalix
Posts: 3852
Joined: Fri Dec 24, 2004 8:16 am
Location: Frankfurt, Germany
Contact:

Postby florian » Wed Jan 03, 2007 6:20 am

Scalix by itself will always use the first address configured for the user as it's outgoing address. For newly created users, it will use the default address generation domain configured during Scalix installation or later modified in SAC.

If you need to use different internal addresses and external addresses, these will have to be mapped, at best on the gateway.

However, for your case it looks like you will just need to modify your Scalix account's email addresses.

Florian.
Florian von Kurnatowski, Die Harder!

Sush

Postby Sush » Wed Jan 03, 2007 6:51 am

During Installation I used
sxconfig --set -t orniasys.name_part_1='"C" <G.S>' -t orniasys.domain_part_1='mydomain.tld'
as internet generation rule and changed it later in sac to vor.nach@mydomain.tld .
Do I have to modify another setting?

Thanks,
Sascha

florian
Scalix
Scalix
Posts: 3852
Joined: Fri Dec 24, 2004 8:16 am
Location: Frankfurt, Germany
Contact:

Postby florian » Wed Jan 03, 2007 6:54 am

well, if you look at your user, what email address does it show in SAC?

if this is correct, then most likely your MTA (sendmail) is setup to do masquerading, i.e. masquerade everything that comes from local as @your.host.name

As you've obviously been using a manual install, may I assume you're running this on debian? In that case you'll probably have to modify debian's sendmail config....

Florian
Florian von Kurnatowski, Die Harder!

Sush

Postby Sush » Wed Jan 03, 2007 6:58 am

All Mails are set to "First Last" <First.Last@mydomain.tld> in SAC
I did a manual install on Ubuntu 6.06.


Sascha

florian
Scalix
Scalix
Posts: 3852
Joined: Fri Dec 24, 2004 8:16 am
Location: Frankfurt, Germany
Contact:

Postby florian » Wed Jan 03, 2007 7:01 am

then it will most likely be your sendmail masquerading. Look out for the DM option or MASQUERADE options ins sendmail.cf and sendmail.mc. I don't have a Ubuntu system at hand right now, so I can't really give you any advice on what to change and where...

Cheers,
Florian.
Florian von Kurnatowski, Die Harder!

Sush

Postby Sush » Wed Jan 03, 2007 8:05 am

Can't find anything like
"DMservername.hostname.org" in sendmail.mc/.cf .
Would be okay if uploaded both files?


Sascha

florian
Scalix
Scalix
Posts: 3852
Joined: Fri Dec 24, 2004 8:16 am
Location: Frankfurt, Germany
Contact:

Postby florian » Wed Jan 03, 2007 8:10 am

it could also be that unix user scalix is not setup to be a "trusted" user so that he can set the sender address (trusted-users file).

This is really a sendmail debugging excercise which i would like to defer to some other space. are you using scalix 10 or scalix 11?

Florian.
Florian von Kurnatowski, Die Harder!

Sush

Postby Sush » Wed Jan 03, 2007 8:13 am

User scalix is listed in /etc/mail/trusted-users .
Version of Scalix is 10.


Sascha

florian
Scalix
Scalix
Posts: 3852
Joined: Fri Dec 24, 2004 8:16 am
Location: Frankfurt, Germany
Contact:

Postby florian » Wed Jan 03, 2007 8:16 am

can you add the -X <filename> option to the sendmail command line /var/opt/scalix/sys/unix.mapper? This will actually record the SMTP conversation to the logfile given. If Scalix outputs the correct FROM address, you will need to look through your sendmail config as this issue is then really outside of Scalix.

Cheers,
Florian
Florian von Kurnatowski, Die Harder!

Sush

Postby Sush » Wed Jan 03, 2007 8:34 am

Okay, here is the log file:

Code: Select all

08759 >>> 220 scalix.mydomain.tld ESMTP Sendmail 8.13.5.20060308/8.13.5/Submit; Wed, 3 Jan 2007 13:28:05 +0100; (No UCE/UBE) logging access from: ()-root@localhost
08759 <<< EHLO scalix.mydomain.tld
08759 >>> 250-scalix.mydomain.tld Hello root@localhost, pleased to meet you
08759 >>> 250-ENHANCEDSTATUSCODES
08759 >>> 250-PIPELINING
08759 >>> 250-8BITMIME
08759 >>> 250-SIZE
08759 >>> 250-DSN
08759 >>> 250-AUTH GSSAPI DIGEST-MD5 CRAM-MD5
08759 >>> 250-DELIVERBY
08759 >>> 250 HELP
08759 <<< MAIL FROM: <Sascha@mydomain.tld> RET=FULL ENVID=11311052.1167827284223.JavaMail.root@scalix
08759 >>> 250 2.1.0 <Sascha@mydomain.tld>... Sender ok
08759 <<< RCPT TO: <Sascha@gmail.com> NOTIFY=DELAY,FAILURE
08759 >>> 250 2.1.5 <Sascha@gmail.com>... Recipient ok
08759 <<< DATA
08759 >>> 354 Enter mail, end with "." on a line by itself
08759 <<< Received: from scalix (scalix.mydomain.tld 192.168.100.13)
08759 <<<     by scalix.mydomain.tld (Scalix SMTP Relay 10.0.1.4)
08759 <<<     via ESMTP; Wed, 03 Jan 2007 13:28:04 +0100 (CET)
08759 <<< Date: Wed, 3 Jan 2007 13:28:04 +0100
08759 <<< From: "Sascha" <Sascha@mydomain.tld>
08759 <<< To: Sascha@gmail.com
08759 <<< Message-ID: <11311052.1167827284223.JavaMail.root@scalix>
08759 <<< Subject: dsad
08759 <<< X-MSMail-Priority:
08759 <<< x-scalix-Hops: 1
08759 <<< X-Mailer: Scalix 10.0.1.6
08759 <<< Mime-Version: 1.0
08759 <<< Content-Type: text/plain;
08759 <<<    charset="us-ascii"
08759 <<< Content-Disposition: inline
08759 <<<
08759 <<< ddddddddddddddddddddddaaaaaaaaaaa
08759 <<< .
08759 === CONNECT [127.0.0.1]
08759 <<< 220 scalix.mydomain.tld ESMTP Sendmail 8.13.5.20060308/8.13.5/Debian-3ubuntu1.1; Wed, 3 Jan 2007 13:28:05 +0100; (No UCE/UBE) logging access from: localhost(OK)-localhost [127.0.0.1]
08759 >>> EHLO scalix.mydomain.tld
08759 <<< 250-scalix.mydomain.tld Hello localhost [127.0.0.1], pleased to meet you
08759 <<< 250-ENHANCEDSTATUSCODES
08759 <<< 250-PIPELINING
08759 <<< 250-EXPN
08759 <<< 250-VERB
08759 <<< 250-8BITMIME
08759 <<< 250-SIZE
08759 <<< 250-DSN
08759 <<< 250-ETRN
08759 <<< 250-AUTH GSSAPI DIGEST-MD5 CRAM-MD5
08759 <<< 250-DELIVERBY
08759 <<< 250 HELP
08759 >>> MAIL From:<Sascha@scalix.mydomain.tld> SIZE=534 ENVID=11311052.1167827284223.JavaMail.root@scalix RET=FULL
08759 <<< 250 2.1.0 <Sascha@scalix.mydomain.tld>... Sender ok
08759 >>> RCPT To:<Sascha@gmail.com> NOTIFY=FAILURE,DELAY
08759 >>> DATA
08759 <<< 250 2.1.5 <Sascha@gmail.com>... Recipient ok
08759 <<< 354 Enter mail, end with "." on a line by itself
08759 >>> Received: from scalix.mydomain.tld (root@localhost)
08759 >>>    by scalix.mydomain.tld (8.13.5.20060308/8.13.5/Submit) with ESMTP id l03CS5NP008759
08759 >>>    for <Sascha@gmail.com>; Wed, 3 Jan 2007 13:28:05 +0100
08759 >>> Received: from scalix (scalix.mydomain.tld 192.168.100.13)
08759 >>>     by scalix.mydomain.tld (Scalix SMTP Relay 10.0.1.4)
08759 >>>     via ESMTP; Wed, 03 Jan 2007 13:28:04 +0100 (CET)
08759 >>> Date: Wed, 3 Jan 2007 13:28:04 +0100
08759 >>> From: "Sascha" <Sascha@scalix.mydomain.tld>
08759 >>> To: Sascha@gmail.com
08759 >>> Message-ID: <11311052.1167827284223.JavaMail.root@scalix>
08759 >>> Subject: dsad
08759 >>> X-MSMail-Priority:
08759 >>> x-scalix-Hops: 1
08759 >>> X-Mailer: Scalix 10.0.1.6
08759 >>> Mime-Version: 1.0
08759 >>> Content-Type: text/plain;
08759 >>>    charset="us-ascii"
08759 >>> Content-Disposition: inline
08759 >>>
08759 >>> ddddddddddddddddddddddaaaaaaaaaaa
08759 >>> .
08759 <<< 250 2.0.0 l03CS5Uj008761 Message accepted for delivery
08759 >>> 250 2.0.0 l03CS5NP008759 Message accepted for delivery
08759 <<< QUIT
08759 >>> 221 2.0.0 scalix.mydomain.tld closing connection
08759 >>> QUIT
08759 <<< 221 2.0.0 scalix.mydomain.tld closing connection

florian
Scalix
Scalix
Posts: 3852
Joined: Fri Dec 24, 2004 8:16 am
Location: Frankfurt, Germany
Contact:

Postby florian » Wed Jan 03, 2007 8:39 am

So as you can see, Scalix hands over the data correctly (1st part), then sendmail mixes it up (2nd part).

This works correctly in our fully-supported platforms and their default configuration (redhat, suse, etc.); therefore this must be some oddity with Ubuntu's default sendmail setup.

Florian.
Florian von Kurnatowski, Die Harder!


Return to “Installation”



Who is online

Users browsing this forum: No registered users and 6 guests

cron