1

Topic: Mail Relay

==== Provide required information to help troubleshoot and get quick answer ====
- Linux/BSD distribution name and version: Ubuntu 11.04
- iRedMail version and backend (LDAP/MySQL): LDAP
- Any related log? Log is helpful for troubleshooting.
====

Hi!

I'm using iRedAdmin Pro in a EC2 instance, so far so good. But there are some domains that doesn't accept our connection or blocks our IP, as we are running in Amazon EC2(EC2 has history of spammers).

I don't want to change my running instance to another provider(Different IP range). I was thinking about forwarding(Mail relay) to another server, running in another provider, just for those domains. Is that possible?

How to solve this issue??

Nb.: I can't contact the domain administrator to unblock our domain(Huge organization).

2

Re: Mail Relay

I guess you need Postfix setting sender_dependent_relayhost_maps. Reference:
http://www.postfix.org/postconf.5.html# … yhost_maps

And a simple example:
http://kostja-osipov.livejournal.com/32518.html

3

Re: Mail Relay

ZhangHuangbin wrote:

I guess you need Postfix setting sender_dependent_relayhost_maps. Reference:
http://www.postfix.org/postconf.5.html# … yhost_maps

And a simple example:
http://kostja-osipov.livejournal.com/32518.html

This is for the sender, my problem is the receiver.

My user send a email to username@somedomain.com. This domain(somedomain.com) is not accepting my connection(My IP is blacklisted). I want to relay to another server, in another IP range to deliver this email.

Is that possible?

Thanks.

4

Re: Mail Relay

I'm afraid that i misunderstood your request, sorry.

Is per-domain transport OK for you? Reference: http://www.postfix.org/postconf.5.html#transport_maps
iRedMail supports per-user and per-domain transport by default, and you can manage them with iRedAdmin-Pro if you have it purchased and installed.

With per-domain transport, all mails received for these domains on your EC2 instance will be forwarded/relayed to your new server. For example, forward all emails received for domain example.com to new server newserver.com:

domain.com smtp:newserver.com

With iRedAdmin-Pro, you can configure per-domain transport in domain profile page, under tab "Relay". Screenshot for your reference:
http://screenshots.iredmail.googlecode.com/hg/iredadmin/domain_profile_relay.png

5

Re: Mail Relay

Hi! Sorry for the late response...

Well, I think I didn't make myself clear.

I have a domain configured in iRedMail, for instance let's call it mydomain.com.

My user, myuser@mydomain.com is sending an email to someuser@anotherserver.com.

The server for anotherserver.com is blocking my IP, so I can't make a connection(Then, I cannot send the email). This server(anotherserver.com) is not manager by me, it's a third part server.

I need to configure my server to when sending emails to anotherserver.com to relay to another server that is not blocked.

Thanks!



ZhangHuangbin wrote:

I'm afraid that i misunderstood your request, sorry.

Is per-domain transport OK for you? Reference: http://www.postfix.org/postconf.5.html#transport_maps
iRedMail supports per-user and per-domain transport by default, and you can manage them with iRedAdmin-Pro if you have it purchased and installed.

With per-domain transport, all mails received for these domains on your EC2 instance will be forwarded/relayed to your new server. For example, forward all emails received for domain example.com to new server newserver.com:

domain.com smtp:newserver.com

With iRedAdmin-Pro, you can configure per-domain transport in domain profile page, under tab "Relay". Screenshot for your reference:
http://screenshots.iredmail.googlecode.com/hg/iredadmin/domain_profile_relay.png

6

Re: Mail Relay

I'm afraid that you need a milter or policy server to handle this.