OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Postfix relayhost setup with Exchange 2003

From: Andreas Winkelmann (mlawinkelmann.de)
Date: Mon Dec 11 2006 - 23:04:32 CST


Am Tuesday 12 December 2006 02:46 schrieb Sean Moss-Pultz:

> Hopefully somebody can help me. I'm running Ubuntu 6.0.6 and Postfix
> 2.2.10-1 on my own system. My company uses Exchange Server 2003. I want to
> setup my system to relay mail to the Exchange server.
>
> I've added the "relayhost = https://owa.fic.com.tw/exchange" line to
> "/etc/postfix/main.cf". Restarted postfix, but things still don't seem to
> be working.

This is the URL for Outlook Web Access. This is not a SMTP-Server Address.
Maybe it is on the same Host, but the OWA Url is absolutely wrong as
RelayHost-Setting in Postfix.

You can try "relayhost = [owa.fic.com.tw]". Maybe it is configured to accept
Mails from Outside/You.

> I don't know if my company's Exchange server allows for SMTP access like
> this. I can check mail in Evolution using the following configuration:
>
> Username: fic\sean

Configure smtp-Auth (http://www.postfix.org/SASL_README.html#client_sasl).

> OWA URL: https://owa.fic.com.tw/exchange
>
> How do I configure main.cf to send through this server?
>
> Here is my mail.log:
>
> Dec 12 09:33:28 localhost postfix/pickup[4984]: 9EC3533022A: uid=0
> from=<root>
> Dec 12 09:33:28 localhost postfix/cleanup[5703]: 9EC3533022A:
> message-id=<20061212013328.9EC3533022Alocalhost.localdomain>
> Dec 12 09:33:28 localhost postfix/qmgr[4985]: 9EC3533022A:
> from=<rootfic.com.tw>, size=295, nrcpt=1 (queue active)
> Dec 12 09:33:28 localhost postfix/local[5705]: 9EC3533022A:
> to=<seanfic.com.tw>, relay=local, delay=0, status=bounced (unknown user:
> "sean")
> Dec 12 09:33:28 localhost postfix/cleanup[5703]: C418633022B:
> message-id=<20061212013328.C418633022Blocalhost.localdomain>
> Dec 12 09:33:28 localhost postfix/qmgr[4985]: C418633022B: from=<>,
> size=1979, nrcpt=1 (queue active)
> Dec 12 09:33:28 localhost postfix/qmgr[4985]: 9EC3533022A: removed
> Dec 12 09:33:28 localhost postfix/local[5705]: C418633022B:
> to=<seanfic.com.tw>, orig_to=<rootfic.com.tw>, relay=local, delay=0,
> status=bounced (unknown user: "sean")
> Dec 12 09:33:28 localhost postfix/qmgr[4985]: C418633022B: removed

You have the Domain in mydestination, so Postfix believes it is local. If you
want to send Mail to it to the outside, then don't tell Postfix that it is
local.

http://www.postfix.org/documentation.html

--
        Andreas