Postby caribk » Tue Nov 22, 2005 3:24 pm
got a related question for SWA outgoing mail.
we have the following setup: internal scalix server (not yet in production) and an external posfix-based smarthost mail relay server.
mail routing works fine for the most part.. spamassassin and clamav is setup with milters and everything works fine. sendmail has the external server as a smarthost but locally delivers mail for the primary domain. SMPTP relay is also setup on 587.
the problem, or more an annoyance during testing, is that all outgoing mail submitted through SWA is *always* routed to the smarthost (which currently means that it is then routed to a different non-Scalix mbox) instead of locally delivered. when testing sendmail on the command line, mail submitted to the local primary domain gets send to scalix, so i know that routing works.
in addition, at first I thought that the problem lied with the SMTP relay so i changed the partner.xml to submit mail directly to sendmail instead of on poert 587 through the relay, as well as checked the audit logs. the SMTP relay hands the mail over to sendmail, but it's still relayed to the smarthost (i assume passed back to SMTP relay again) when sent from SWA.
i have the appropriate RELAY accept domain.com as well as RELAY accept xx.xxx.xx.xx (local ip/subnets) in there.
my question the is, how do I get SWA to deliver locally in this situation? i thought that adding a SUBMIT or RECIPIENT accept line *before* the RELAY lines in smtpd.cfg would do the trick, but nothing change.
like i said, mail routing work but i just want to figure out why this is ony happening through SWA, even when it is submitting outgoing mail through sendmail and sendmail from the command-line delivers directly.