Page 1 of 1

[Relay Troubless] back to Bridgehead

Posted: Thu Jan 04, 2007 10:24 am
by Karottenzuechter
Hi Folks,

In my DMZ there is a Postfix Server running relaying mails to my scalix server in the local network.

I configured smtpd.conf to accept my relayed mails, and everything works fine.

So i also wanted to relay from Scalix to Postfix and the way back out.

So i edited the sendmail.cf and entered on the DS Line DSmyrelay.dmz.com

omsendin

And now i get the message 550 Denied due to spam list from sendmail.

Before i did omsendin i only got the error on non premium users smtp connection.

It looks like that sendmail relays wrong to postfix??

Posted: Thu Jan 04, 2007 1:16 pm
by btisdall
Is the IP address of your Scalix box included in Postfix's 'mynetworks'? (See /etc/postfix/main.cf)

By default Postifx will reject relay attempts from hosts/networks not included therein.

Posted: Thu Jan 04, 2007 2:46 pm
by Karottenzuechter
Problem was relay_host, when it's set in main.cf all mails get relayed to this host.

So create a file: touch /etc/postfix/transport
Content of /etc/postfix/transport
domain.com smtp:[your.relay.server]:25

on the shell:
postmap transport

Then in main.cf
transport_maps=hash:/etc/postfix/transport

postfix restart.

Everything works fine.

Posted: Thu Jan 04, 2007 3:54 pm
by btisdall
Ah, I rather misunderstood the nature of your problem.

Glad you got it working.

Posted: Thu Jan 04, 2007 7:52 pm
by Karottenzuechter
To my opinion Scalix is dealing with sendmail on 2 ways, for std. users and for premium users.

Premium Users are using the Scalix sendmail interface, so i did not see the error by the way cause my scalix server sent the emails out by it's own with out the bridge head.

Std Scalix Users are directly using sendmail, and i think, that Scalix uses the sendmail.mc config and sendmail native uses the sendmail.cf, and so i got the same error on both ways after omsendin where the sendmail.mc gets prepared.

The next problem then was, that postfix relayed all the emails back to sendmail, and send mail to postfix,...... and i got to many hops, so the thread 2 before this was the solution.