Kruse, Karsten via Postfix-users:
> Hi,
> 
> My Postfix gets emails per smtp. I restrict mail sizes globally to 7MB, like 
> so:
> 
> postconf -e " message_size_limit=7000000"
> 
> Works fine. I have a relayhost_map that then routes messages From:
> [email protected] via mailrelay.cloud.com. Works fine as well.
>
> Until now I simply rejected mails to large and called it a day.
> Email isn't ftp, right?
>
> Now they want that mails larger than 7MB and that are From:
> [email protected] should be sent through a different relay, say
> largerelay.cloud.com.
>
> Is there an easy way this can be done?

You can route *all* of Carl's email messages with
sender_dependent_relayhost_maps or with
sender_dependent_default_transport_maps

https://www.postfix.org/postconf.5.html#sender_dependent_relayhost_maps
https://www.postfix.org/postconf.5.html#sender_dependent_default_transport_maps

Relaying based on random criteria is not well supported.

        Wietse
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
  • [pfx] Per size relay Kruse, Karsten via Postfix-users
    • [pfx] Re: Per size relay Wietse Venema via Postfix-users

Reply via email to