How change root@exmaple.com to info@example.com

hello I’ve created a MIAB server that works well. Now I have created on another server a relay that works well and gets mail-tester 10/10, but only with root@example.com to test that’s ok, but I want to use for the operation of info@example.com (info and root are already created as user in MIAB) how do I do that now?

Replace the credentials for root@example.com with the ones for info@example.com in the postfix config files.

But, why? That is what I am missing as the specific user makes no difference in the relay process. Maybe you can elaborate further exactly what you want to accomplish as you already have a working setup. There is an English saying, “If it ain’t broken, don’t fix it”. I am wondering what you are hoping to achieve.

Thanks for the answer.

you mean edit the relay_password and instead of … root@domain.com:password should I use info@domain.com:password ?

I thought so too at first, but then comes the following error message.

Sender address rejected: not owned by user info@domain.com (in reply to RCPT TO command))

Info@domain.com is a user, not an alias, correct?

yes, thats correct. I have already written that above

Where exactly are you seeing this error message?

this is the /var/log/mail.log output when I use root@domain.com (anonymized)

May  4 16:20:28 pve postfix/postfix-script[3132]: refreshing the Postfix mail system
May  4 16:20:28 pve postfix/master[28944]: reload -- version 3.1.12, configuration /etc/postfix
May  4 16:20:34 pve postfix/pickup[3136]: CC26941160: uid=0 from=<root>
May  4 16:20:34 pve postfix/cleanup[3142]: CC26941160: message-id=<20190504142034.CC26941160@pve.domain.com>
May  4 16:20:34 pve postfix/qmgr[3137]: CC26941160: from=<root@domain.com>, size=537, nrcpt=1 (queue active)
May  4 16:20:35 pve postfix/smtp[3144]: CC26941160: to=<mail@test.de>, relay=box.example.net[123.456.789.1]:587, delay=0.26, delays=0.02/0.03/0.04/0.17, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as EDAB620A29)
May  4 16:20:35 pve postfix/qmgr[3137]: CC26941160: removed

and that at info@domain.com

May  4 16:18:52 pve postfix/pickup[2201]: 01A6F4112D: uid=0 from=<root>
May  4 16:18:52 pve postfix/cleanup[2240]: 01A6F4112D: message-id=<20190504141852.01A6F4112D@pve.domain.com>
May  4 16:18:52 pve postfix/qmgr[2202]: 01A6F4112D: from=<root@domain.com>, size=537, nrcpt=1 (queue active)
May  4 16:18:52 pve postfix/smtp[2242]: 01A6F4112D: to=<mail@test.de>, relay=box.example.net[123.456.789.1]:587, delay=0.1, delays=0.02/0.04/0.03/0.01, dsn=5.7.1, status=bounced (host box.example.net[123.456.789.1] said: 553 5.7.1 <root@domain.com>: Sender address rejected: not owned by user info@domain.com (in reply to RCPT TO command))
May  4 16:18:52 pve postfix/cleanup[2240]: 18C9541160: message-id=<20190504141852.18C9541160@pve.domain.com>
May  4 16:18:52 pve postfix/bounce[2245]: 01A6F4112D: sender non-delivery notification: 18C9541160
May  4 16:18:52 pve postfix/qmgr[2202]: 18C9541160: from=<>, size=2622, nrcpt=1 (queue active)
May  4 16:18:52 pve postfix/qmgr[2202]: 01A6F4112D: removed
May  4 16:18:52 pve postfix/smtp[2242]: 18C9541160: to=<root@domain.com>, relay=box.example.net[123.456.789.1]:587, delay=0.16, delays=0/0/0.05/0.1, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 26E3E20A29)
May  4 16:18:52 pve postfix/qmgr[2202]: 18C9541160: removed

could solve the problem myself.
the following must be entered in the postfix main.cf

sender_canonical_maps = hash:/etc/postfix/sender-canonical

then create a sender-canonical with the following content:

root@pve.domain.com info@domain.com

then

postmap sender-canonical

and finally

service postfix reload

you can test it all with

echo "test message" | mail -s "test subject" test@email.com