Postfix as Smart Host

Discussion in 'Server Operation' started by mgrandio, Feb 10, 2008.

  1. mgrandio

    mgrandio New Member

    Hello everybody,

    Our corporate site and mail are in The perfect setup for Suse + ISP config, actually one of our branches needs start using Exchange:mad: , I do not have so much time for reseting everything (and also i am not a very good Linux user) so what I thougth to do is the following meanwhile I find a better solution

    Run in the exchange server a tool for reading the POP 3 mailboxes in the linux server because I want to keep he AntiSpam and Antivirus function...This is done working fine.

    Setup Procmail to be a SMTP smarthost for the outgoing messages coming from the Exchange server...I have not been able to do this:confused: :confused:

    In the near future I would prefer that the Linux box would be a SMTP smarthost for inbound and outbound mail for the Exchange, but wanna keep the Spam assasin and antivirus check for the emails... also have not find a clear way to to this

    Any help would be apreciated, thanks in advance

  2. topdog

    topdog Active Member

    These changes allow your postfix to work as an inbound gateway, for outbound if your exchange server is in mynetworks it will work without modifications.

    Make these changes to your alter options to fit your setup.

    myorigin =
    mydestination =
    local_recipient_maps =
    local_transport = error:local mail delivery is disabled
    virtual_alias_maps = hash:/etc/postfix/virtual
    mynetworks =
    relay_domains =
    parent_domain_matches_subdomains = debug_peer_list smtpd_access_maps
    relay_recipient_maps =
    transport_maps = hash:/etc/postfix/transport
    Comment out local delivery in

    add this to your /etc/postfix/virtual
    postmaster      [email protected]
    abuse           [email protected]
    add this to your /etc/postfix/transport
    Code:   smtp:[]
    Then run this
    postmap /etc/postfix/transport
    postmap /etc/postfix/virtual
    postfix reload
  3. sunghost

    sunghost Member

    Help needed

    Hi Guys,

    i use postfix as smarthost für Exchange 2003 too. so far all are fine but my incoming mails become rewritten in recipient to the intern adress. example. extern user send mail to [email protected] in my exchange the mail is send to [email protected] and the recipient is not the original.
    in the postfix log i can see that he sends the mail to [email protected]. is the problem in the aliasses db?

    hope someone can help
  4. eduarinxs

    eduarinxs New Member

    HELP ME, POSTFIX configuration virtual user or smarthost

    hello friends I have the following architecture 2 a postfix mail server (2.2) and exchange 2007 both in the same domain but different MX. All mail from outside to pass through the exchange, the mailbox gets its responsibilities and who do not, send the following mail server (postfix). But the emails from the LAN is not so, if the client has their mailbox in postfix, the mail is addressed to the postfix server and if the mailbox is on exchange this look for the exchange server. The problem is that if the account has a mailbox in postfix tries to send an email to an account that has a mailbox in the exchange automatically show him the error 550 it will look in your users table in the server account postfix and there has not been set as the error. My question is how to configure postfix to determine this email it does not belong to me and if I do not own search in the following mail server

Share This Page