Hi,
I guess I have a problem with the sendmail smart host relay.
The system is Scalix 11.4.3 Community Edition on a CentOS 5.3 Server with the hostname groupserver using IP 192.168.0.2.
The current mailserver, which is also the firewall and the primary mx for our internetdomain, is using postfix which I call fw1 using 192.168.0.254.
The fw1 is then using the telekom relay server to send mails as we use dyndns.
We don't use any DNS on the network.
I get the mails from fw1 via fetchmail to the Scalix groupserver with no problems.
To send mails to external domains I have to use the sendmail smart host relay function. In a previous MS Exchange setup this worked with no problems.
But now it seems the scalix server does not communicate with the smart host fw1 if I try to send mails (internal mails are working).
What I did so far (no authentication needed for the smart host):
I added our internal network range to /var/opt/scalix/gr/s/sys/smtpd.cfg because I received 550 rejected due to spam errors:
# NB Authenticated RELAYs are always allowed
RELAY accept 127.0.0.1
RELAY accept 192.168.0.0/255.255.255.0
RELAY accept .local
RELAY Log_Reject ALL
In /etc/mail/sendmail.mc
define(`SMART_HOST', `[192.168.0.254]')dnl
commented out: dnl LOCAL_DOMAIN(`localhost.localdomain')dnl (because I use /etc/mail/local-host-names)
MASQUERADE_AS(`internetdomain.com')dnl
FEATURE(masquerade_envelope)dnl
everything else in sendmail.mc is untouched. Then
m4 sendmail.mc > sendmail.cf
/etc/init.d/sendmail restart
omsendin
omoff -d0 -w smtpd;omon -w smtpd
When I try to send mails from scalix using outlook (IMAP) the /var/log/maillog on the Scalix Server tells:
Apr 8 09:59:15 groupserver sendmail[13627]: n387wKlk013627: from=roland.amann@localdomain.local, size=0, class=0, nrcpts=1, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Apr 8 09:59:45 groupserver sendmail[13687]: n387xFsE013687: from=<roland.amann@localdomain.local>, size=2380, class=0, nrcpts=1, msgid=<000901c9b81f$e1df8930$2d6464c4@wksraedv>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Apr 8 09:59:45 groupserver sendmail[13687]: n387xFsE013687: to=<external@differentinternetdomain.com>, delay=00:00:00, mailer=relay, pri=32380, dsn=4.4.3, stat=queued
The mailserver fw1 gets nothing in its log files. Shouldn't the maillog on the scalix server side tell relay=192.168.0.254?
@localdomain.local is the mailadressdomain which I entered while installing scalix. I changed that using sac to our internetdomain.com.
My /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.0.2 groupserver.local groupserver
::1 localhost6.localdomain6 localhost6
I telnet 25 to the scalix server and try to send mail.
telnet 192.168.0.2 25
Trying 192.168.0.2...
Connected to groupserver.local (192.168.0.2).
Escape character is '^]'.
220 groupserver.local ESMTP Scalix SMTP Relay 11.4.3.12339; Wed, 08 Apr 2009 10:07:16 +0200 (CEST)
helo groupserver
250 groupserver.local Hello groupserver.local [192.168.0.2], pleased to meet you
mail from: roland.amann@internetdomain.com
250 roland.amann@internetdomain.com... Sender ok
rcpt to: external@differentinternetdomain.com
250 Ok
DATA
354 Enter mail, end with "." on a line by itself (relay)
subject: Testmail Telnet from Scalix
Testmail
.
250 Ok
/var/log/maillog:
Apr 8 10:08:13 groupserver sendmail[14531]: n3887m9E014531: from=roland.amann@internetdomain.com, size=0, class=0, nrcpts=1, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Apr 8 10:09:20 groupserver sendmail[14599]: n3888tSf014599: from=<roland.amann@internetdomain.com>, size=523, class=0, nrcpts=1, msgid=<4136.10001239178134.groupserver.local@MHS>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Apr 8 10:09:20 groupserver sendmail[14599]: n3888tSf014599: to=<external@differentinternetdomain.com>, delay=00:00:00, mailer=relay, pri=30523, dsn=4.4.3, stat=queued
Absolutely nothing happens in mail.log on the smart host.
I bet I'm missing something important but I couldn't find what in the documentation, wiki or here in the forums.
Thanks for any advice.
Roland Amann