smtp relay based on recipient domain

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

smtp relay based on recipient domain

lobokn
Hi, is there any way how to configure postfix to relay e-mails for particular
subdomain to different SMTP server. May be there is another way how to solve
my problem. So I described situation below.

Situation:
We have domain mydomain.com And have mailserver with postfix configured. All
e-mails from our servers and user mail clients goes trough this server. Now
we need to use "2N VoiceBlue Next" gateway to change some e-mails to sms.
The gateway has hostname sms.mydomain.com and has SMTP access. So I need all
e-mails with @sms.mydomain.com in recipient address to be relayed to "2N
VoiceBlue Next" with authentification (username,password) for SMTP which is
unique.

Can someone help me with this ?

Regards

LuboŇ°



--
Sent from: http://postfix.1071664.n5.nabble.com/Postfix-Users-f2.html
Reply | Threaded
Open this post in threaded view
|

Re: smtp relay based on recipient domain

Wietse Venema
lobokn:
> Hi, is there any way how to configure postfix to relay e-mails for particular
> subdomain to different SMTP server. May be there is another way how to solve
> my problem. So I described situation below.

Set up an SMTP delivery transport in master.cf with SASL enabled:

/etc/postfix/master.cf
    smtp-2n       unix  -       -       y       -       -       smtp
        -o smtp_sasl_auth_enable=yes
        -o smtp_tls_security_level=encrypt

http://www.postfix.org/master.5.html for details.

Set up a transport mapping for sms.mydomain.com that uses the above
SMTP delivery transport:

/etc/postfix/main.cf:
    transport_maps = hash:/etc/postfix/transport

/etc/postfix/transport:
    sms.mydomain.com  smtp-2n:

http://www.postfix.org/postconf.5.html#transport_maps
http://www.postfix.org/transport.5.html
http://www.postfix.org/SASL_README.html for other SASL configuration.

Use smtp-2n_destination_concurrency_limit and
smtp-2n_destination_recipient_limit to control the flow.

http://www.postfix.org/postconf.5.html#transport_destination_recipient_limit
http://www.postfix.org/postconf.5.html#transport_destination_concurrency_limit

The above is from memory. I may have forgotten something.

        Wietse

> Situation:
> We have domain mydomain.com And have mailserver with postfix configured. All
> e-mails from our servers and user mail clients goes trough this server. Now
> we need to use "2N VoiceBlue Next" gateway to change some e-mails to sms.
> The gateway has hostname sms.mydomain.com and has SMTP access. So I need all
> e-mails with @sms.mydomain.com in recipient address to be relayed to "2N
> VoiceBlue Next" with authentification (username,password) for SMTP which is
> unique.
>
> Can someone help me with this ?
>
> Regards
>
> Lubo?
>
>
>
> --
> Sent from: http://postfix.1071664.n5.nabble.com/Postfix-Users-f2.html
>
Reply | Threaded
Open this post in threaded view
|

Re: smtp relay based on recipient domain

lobokn
Thanks for your reply. I will try.

LuboŇ°



--
Sent from: http://postfix.1071664.n5.nabble.com/Postfix-Users-f2.html