# Multiple SMTP settings for different mailing segments

**URL:** <https://forum.mautic.org/t/multiple-smtp-settings-for-different-mailing-segments/18446>\
**Category:** General Discussion\
**Created:** [March 5, 2021, 4:27am UTC](https://forum.mautic.org/t/multiple-smtp-settings-for-different-mailing-segments/18446 "2021-03-05T04:27:26Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![vega4](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/vega4/32/7308_2.png) [@vega4](https://forum.mautic.org/u/vega4)\
**Post date:** [June 16, 2022, 7:54am UTC](https://forum.mautic.org/t/multiple-smtp-settings-for-different-mailing-segments/18446/5 "2022-06-16T07:54:01Z")

</div>

I got to know that this community (especially the project’s Lead) threats people who propose/find bugs/ want to mangle with anything as Enemies, or if you are a business they would ask EUR/an hour.

Thus you are better off with simply giving a go to:  
[http://jmaimon.com/sendmail/anfi.homeunix.net/sendmail/smarttab.html](http://jmaimon.com/sendmail/anfi.homeunix.net/sendmail/smarttab.html)

[https://www.cyberciti.biz/faq/how-to-configure-postfix-relayhost-smarthost-to-send-email-using-an-external-smptd/](https://www.cyberciti.biz/faq/how-to-configure-postfix-relayhost-smarthost-to-send-email-using-an-external-smptd/)

if you are on Postfix simply add a line to your main configuration file  
`sender_dependent_relayhost_maps = hash:/etc/postfix/transport`  
and then, in that file  
` @centos.org.pl poczta.centos.com.pl`

- add as many relaying/routing based on source email address as you wish.

For postfix also:

> **[Setting up POSTFIX's sender\_dependent\_relayhost\_maps](https://kostja-osipov.livejournal.com/32518.html)**
>
> My new employer, Mail.Ru, allows its SMTP servers to relay mails from senders that use their corporate email addresses only. Erm, to be more accurate, the authenticated user must match From field of the mail. Since I also have a personal mail at...

> <https://serverfault.com/questions/770002/postfix-sender-dependent-relayhost-maps-do-not-relay-a-specific-address>

---

_[View the full topic](https://forum.mautic.org/t/multiple-smtp-settings-for-different-mailing-segments/18446)._
