Hello,

TL;DR:
I need to setup different configuration for two different relays... and
I can't see if this is possible and how to do it.


I have a Postfix problem and very limited internet access (I've just
subscribed to the mailing list but I'm not sure if I'll be able to
download all the messages, feel free to CC me) (I'm on an the ACE
Antarctic expedition right now helping with software/networking/data
management/setting up equipment).

The problem is that I setup a Postfix server that is used just to relay
to different SMTP servers (so users don't need to be waiting for the
internet connection on their Thunderbird/others). The setup is not ideal
and it's only for 3 users that use different email addresses
(yahoo.co.uk and two different institutional domains).

For the relay authentication and setup:

My sasl_passwd file that looks like:
[RELAY_IP1]:465    user1:password1
[RELAY_IP2]:587    user2:psasword2

And I have a relayhost_map:
user1   [RELAY_IP1]:465
user2   [RELAY_IP2]:587

Users connect to the Postfix using Thunderbird, authenticated SMTP.

The problem is that user1's SMTP server needs these settings:
smtp_tls_wrappermode = yes
smtp_tls_security_level = encrypt

and user2's SMTP server:
smtp_tls_wrappermode = yes
smtp_tls_security_level = may

Here the question: I've been playing with the transport table to do
something like (I've found it on the internet):
[RELAY_IP1]:465 relay-smtps[RELAY_IP1]:465

And then in the master.cf table:
relay-smtps  unix  -       -       y       -       -       smtp
  # This server default is SMTPS unless goes to relay-nosmtps
  -o smtp_tls_security_level=encrypt
  -o smtp_tls_wrappermode=yes

But my understanding at the moment is that the transport table only
affects depending on the recipient of the email, not on the next relay
host.

Is it possible to do what I want to do? How? Because at the moment it
seems impossible to me :-(

Thank you very much! I really appreciate your help!

-- 
Carles Pina i Estany
        Web: http://pinux.info || Blog: http://pintant.cat
        GPG Key 0x8CD5C157
        Current Latitude: -54.8678 Longitude: 101.8682
        http://www.google.com/maps/place/-54.8678,101.8682

Reply via email to