1

Topic: Alias problems

This is a general question about aliases.

I'll describe our scenario so it is easier to understand the problem.

We have a domain(aaa.com) in a iRedMail Pro installation, it works great.
We have another domain from the same company(bbb.com) in a hosting company, also works great.
In the domain bbb.com we have an alias, alias@bbb.com that is a redirect to email1@aaa.com and email2@aaa.com.

Our problem is that if an email is sent to alias@bbb.com, the bbb.com server will try to send it to email1@aaa.com and email2@aaa.com, but the aaa.com server(iRedMail) will reject, as the sender is not logged in(It is coming from another mail server):

postfix/smtpd[28344]: NOQUEUE: reject: RCPT from mail.bbb.com[XXX.XXX.XXX.XXX]: 553 5.7.1 <someemail@aaa.com>: Sender address rejected: not logged in; from=<someemail@aaa.com> to=<email1@aaa.com> proto=ESMTP helo=<mail.bbb.com>

How can I solve this issue? I want to have only my server as a sender to this domain aaa.com, but at the same time I need to create those kind of redirections from another domain.

Regards,

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Alias problems

OMG, i just realized that i made a mistake while answering same question in our Chinese support forum.

This issue can be solved with SRS (Sender Rewriting Scheme), but Postfix doesn't natively support it.
Reference: http://www.libsrs2.org/index.html

This Overview page clearly describes how it works: http://www.libsrs2.org/overview.html

http://www.openspf.net/blobs/srsdetail_1.png
http://www.openspf.net/blobs/srsdetail_3.png

3

Re: Alias problems

ZhangHuangbin wrote:

OMG, i just realized that i made a mistake while answering same question in our Chinese support forum.

This issue can be solved with SRS (Sender Rewriting Scheme), but Postfix doesn't natively support it.
Reference: http://www.libsrs2.org/index.html

This Overview page clearly describes how it works: http://www.libsrs2.org/overview.html

http://www.openspf.net/blobs/srsdetail_1.png
http://www.openspf.net/blobs/srsdetail_3.png

This need to be done in aaa.com or bbb.com? The sender or the forwarder?

I'll read the links you gave me this afternoon...

Thanks!