1

Topic: Relay/Transport Setting per domain with iRedAdmin-Pro-MySQL not work

==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
==== ==== Required information ====
- iRedMail version: 0.8.1
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): iRedAdmin-Pro-MySQL 1.4
- Linux/BSD distribution name and version: Centos 5.8
- Related log if you're reporting an issue:
====
Hi Zhang

I config Relay/Transport Setting per domain but not working.Server sitll use local ip for sending not relay to ip outside.Pls help me.

Thanks

Post's attachments

iredmail.jpg
iredmail.jpg 70.76 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

2

Re: Relay/Transport Setting per domain with iRedAdmin-Pro-MySQL not work

Could you please show us related log in Postfix log file (/var/log/maillog) while you sending email?

3

Re: Relay/Transport Setting per domain with iRedAdmin-Pro-MySQL not work

Dear Zhang
Pls help me.
This is log :
[root@store1 ~]# tail -f /var/log/maillog
Jan 23 09:17:52 store1 postfix/smtpd[8747]: connect from abc.com[127.0.0.1]
Jan 23 09:17:52 store1 postfix/smtpd[8747]: 0EAA21DB06BE: client=abc.com[127.0.0.1]
Jan 23 02:17:52 store1 policyd: connection from: 127.0.0.1 port: 50464 slots: 0 of 2044 used
Jan 23 02:17:52 store1 policyd: rcpt=29, throttle=update(a), host=127.0.0.1, from=test@abc.com, to=nmtuan1702@yahoo.com, size=351/15728640,

quota=703/500000000, count=2/300(2), rcpt=2/1000(2), threshold=0%|0%|0%
Jan 23 09:17:52 store1 postfix/cleanup[8753]: 0EAA21DB06BE: message-id=<89c1913e1159946cddeac7d6809756b3@abc.com>
Jan 23 09:17:52 store1 dkim-filter[2983]: 0EAA21DB06BE "DKIM-Signature" header added
Jan 23 09:17:52 store1 postfix/qmgr[7386]: 0EAA21DB06BE: from=<test@abc.com>, size=571, nrcpt=1 (queue active)
Jan 23 09:17:52 store1 postfix/smtpd[8747]: disconnect from abc.com[127.0.0.1]
Jan 23 09:17:52 store1 postfix/smtpd[8759]: connect from abc.com[127.0.0.1]
Jan 23 09:17:52 store1 postfix/smtpd[8759]: 484FA1DB06D4: client=abc.com[127.0.0.1]
Jan 23 09:17:52 store1 postfix/cleanup[8753]: 484FA1DB06D4: message-id=<89c1913e1159946cddeac7d6809756b3@abc.com>
Jan 23 09:17:52 store1 dkim-filter[2983]: 484FA1DB06D4 "DKIM-Signature" header added
Jan 23 09:17:52 store1 postfix/smtpd[8759]: disconnect from abc.com[127.0.0.1]
Jan 23 09:17:52 store1 postfix/qmgr[7386]: 484FA1DB06D4: from=<test@abc.com>, size=1395, nrcpt=1 (queue active)
Jan 23 09:17:52 store1 amavis[3604]: (03604-16) Passed CLEAN, MYNETS LOCAL [127.0.0.1] [127.0.0.1] <test@abc.com> -> <nmtuan1702@yahoo.com>,

Message-ID: <89c1913e1159946cddeac7d6809756b3@abc.com>, mail_id: JzeSWQFl8q5Q, Hits: -, size: 963, queued_as: 484FA1DB06D4, dkim_id=@abc.com, 183

ms
Jan 23 09:17:52 store1 postfix/smtp[8757]: 0EAA21DB06BE: to=<nmtuan1702@yahoo.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.34, delays=0.14/0.01/0/0.19,

dsn=2.0.0, status=sent (250 2.0.0 Ok, id=03604-16, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 484FA1DB06D4)
Jan 23 09:17:52 store1 postfix/qmgr[7386]: 0EAA21DB06BE: removed
Jan 23 09:17:52 store1 postfix/smtp[8761]: 484FA1DB06D4: enabling PIX workarounds: disable_esmtp delay_dotcrlf for mta6.am0.yahoodns.net[66.94.238.147]:25
Jan 23 09:17:55 store1 postfix/smtp[8761]: 484FA1DB06D4: to=<nmtuan1702@yahoo.com>, relay=mta6.am0.yahoodns.net[66.94.238.147]:25, delay=2.9,

delays=0.07/0.01/0.77/2, dsn=2.0.0, status=sent (250 ok dirdel)
Jan 23 09:17:55 store1 postfix/qmgr[7386]: 484FA1DB06D4: removed

4

Re: Relay/Transport Setting per domain with iRedAdmin-Pro-MySQL not work

To send out email with a relay host, please set Postfix parameter "relayhost =" instead.
Per-user and per-domain relay are used for received emails.

5

Re: Relay/Transport Setting per domain with iRedAdmin-Pro-MySQL not work

Hi Zhang
"relayhost=" default will relay all email so i dont want
I only want relay per domain to another server ip.
example:
Set per-domain relay setting with iRedAdmin-Pro for abc.com, value : smtp:mx.gw.com:25
Set per-domain relay setting with iRedAdmin-Pro for def.com, value : smtp:mx1.gw1.com:25

6

Re: Relay/Transport Setting per domain with iRedAdmin-Pro-MySQL not work

Please try searching "postfix sender depend relayhost" with Google.