custom SMTP per user and same domain

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
User avatar
rosch
Advanced member
Advanced member
Posts: 163
Joined: Sat Sep 13, 2014 1:34 am
ZCS/ZD Version: 9.0.0.ZEXTRAS.20220713.UBUNTU20.64

custom SMTP per user and same domain

Post by rosch »

Hi there,

what I'm asking is similar to maxxer's thread from 2016 Use custom SMTP per user.
Unfortunately there was no posted solution.

I'm looking to configure the external sending where each user has his own smpt account at the same mail relay mail.relay.com.

I followed the zimbra wiki Relay per Domain, version 8.8.10.

Files and desired content:

Code: Select all

/opt/zimbra/common/conf/bysender
user1@domain.com [mail.relay.com]:submission
user2@domain.com [mail.relay.com]:submission

Code: Select all

/opt/zimbra/common/conf/relaypasswords
[mail.relay.com]:submission user1:password1
[mail.relay.com]:submission user2:password2

Is this even possible?
User avatar
JDunphy
Outstanding Member
Outstanding Member
Posts: 901
Joined: Fri Sep 12, 2014 11:18 pm
Location: Victoria, BC
ZCS/ZD Version: 9.0.0_P39 NETWORK Edition

Re: custom SMTP per user and same domain

Post by JDunphy »

Perhaps this?
viewtopic.php?t=60798
User avatar
rosch
Advanced member
Advanced member
Posts: 163
Joined: Sat Sep 13, 2014 1:34 am
ZCS/ZD Version: 9.0.0.ZEXTRAS.20220713.UBUNTU20.64

Re: custom SMTP per user and same domain

Post by rosch »

JDunphy wrote:Perhaps this?
viewtopic.php?t=60798
I know it's been a while, but yes, this did the trick, thanks.

ps: I didn't have to

Code: Select all

zmcontrol restart
after every update of the relay_password file.

Code: Select all

postmap /opt/zimbra/conf/relay_password
is sufficient.
Post Reply