On Sun, Mar 30, 2014 at 04:13:00PM -0700, cybermass wrote:

> How can I configure it so that the user's email never bounce through any
> other hop but go directly through the server?

By arranging for mail to the domain in question to be delivered locally:

    http://www.postfix.org/BASIC_CONFIGURATION_README.html#mydestination
    http://www.postfix.org/BASIC_CONFIGURATION_README.html#relay_from
    http://www.postfix.org/BASIC_CONFIGURATION_README.html#relay_to
    http://www.postfix.org/VIRTUAL_README.html#canonical

    http://www.postfix.org/postconf.5.html#mydestination
    http://www.postfix.org/postconf.5.html#virtual_mailbox_domains
    http://www.postfix.org/postconf.5.html#virtual_alias_domains

Note that with virtual alias domains, whether delivery is local or
not depends on what other domain any particular address is rewritten
to.  Addresses that fail to be rewritten to some other domain are
either rejected or bounced.

> Also how do I configure it to ONLY deliver via LMTP and not even SMTP?

Delivery is via whatever transport you configure:

    http://www.postfix.org/transport.5.html
    http://www.postfix.org/postconf.5.html#transport_maps
    http://www.postfix.org/postconf.5.html#local_transport
    http://www.postfix.org/postconf.5.html#virtual_transport

> This confuses me because the user
> is a roaming client, how would that user make a connection to the postfix
> server without using port 25 or 465? In my case, we use a custom port since
> ISP's block outgoing ports 25 and sometimes 465

How the client submits the mail for delivery is irrelevant.  Perhaps
you are not even able to express your question clearly enough.  What
real problem are you trying to solve?  (Don't talk about SMTP or Postfix,
talk about what practical properties you want for the email in question

-- 
        Viktor.

Reply via email to