Postfix behavior for internal emails

Discussion in 'Server Operation' started by voltron81, Dec 8, 2009.

  1. voltron81

    voltron81 New Member

    Hi guys.
    I've realized a configuration of postfix that will put in the queue all the emails to send (deferred queue) and, when I want, the email to send will be relayed to the main mailserver.

    Now I've 2 questions:
    1) How to queue the emails directly in Hold?
    I've setup main.cf with this lines:
    Code:
    transport_maps = hold:[mail.domain.com]
    defer_transports = hold
    default_transport = hold
    virtual_transport = hold
    and master.cf:
    Code:
    hold      unix  -       -       n       -       -       smtp
    2) How to setup postfix to not queue and relay the internal emails?
    All the internal emails will have the same domain (domain.com).

    Thanks a lot
    Michele
     
  2. voltron81

    voltron81 New Member

    I guess that for the question n.2, I've to find the way to say to postfix that all the emails where the receiver is @domain.com must me delivered locally (with maildir).

    Any idea?
    Thanks
     
  3. voltron81

    voltron81 New Member

    Ok I've solved the question 2:
    In mail_transport database I'll setup:
    Code:
    domain.com  :
    *  hold:[mail.relay.com]
    Now the local email are now queued and are delivered locally...

    I still have the question number 1...

    Suggestions?
    ;)

    Thanks
    Michele
     

Share This Page