1 (edited by radu 2011-03-29 01:08:26)

Topic: Domain relay not working now

Hi


I have a problem:

On my main server i have change this in order to relay some domains through it (don't remeber the iredmail version sicne i installed it like 1 year ago)

What i did:
/etc/postfix/transport
domain.com smtp[192.168.0.25]
domain2.com smtp[192.168.0.25]

in main.conf i changed:
transport_maps = proxy:mysql:/etc/postfix/mysql_transport_maps_user.cf, hash:/etc/postfix/transport, proxy:mysql:/etc
/postfix/mysql_transport_maps_domain.cf

So i could have the transport map inside
And set in postfixadmin domain.com and domain2.com  Mail server is backup MX = yes and transport = dovecot, and till this day works like a charm.


On the new server i made the same settings, but i get this stupid error:
Recipient address rejected: User unknown in relay recipient table;
I am using the mysql version 0.6.1

Also from what i see if i check domain is backup mx ... it still lets me creat users/aliases in postfixadmin 2.3 compared to the older version.
Can someone tell me what was changed between the versions that it is no longer working??? Thank you

----

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

2

Re: Domain relay not working now

radu wrote:

Recipient address rejected: User unknown in relay recipient table;

Do you have postfix "relay_recipient_maps" enabled?
Also, seems your transport has incorrect format. Reference: http://www.postfix.org/transport.5.html
It should be:

domain.com smtp:[192.168.0.25]

3

Re: Domain relay not working now

You were right, there was a mistake in /etc/postfix/transport

it is now

domain.com smtp:[192.168.0.25]

But still it is not working, i also tried to add domain.com -> domain.com in the domain alias mysql table but i still get:

Sender address rejected: User unknown in relay recipient table from telnet or

Mar 29 03:16:46 mail roundcube: [29-Mar-2011 03:16:46 -0400]: SMTP Error: SMTP error: Failed to add recipient 'user@domain.com' in /var/www/roundcubemail-0.3.1/program/steps/mail/func.inc on line 1365 (POST /webmail/?_task=mail&_action=send)
Mar 29 03:16:46 mail postfix/smtpd[2498]: disconnect from mail.default.com[127.0.0.1]

Do you have postfix "relay_recipient_maps" enabled?
yes it apears like this:
relay_recipient_maps = proxy:mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf



Any more ideas?

4

Re: Domain relay not working now

radu wrote:

relay_recipient_maps = proxy:mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf

The erroe message complains it can't find user with this mysql lookup.

So you have to either disable 'relay_recipient_maps' or make this user available with this mysql lookup.

5

Re: Domain relay not working now

ZhangHuangbin wrote:
radu wrote:

relay_recipient_maps = proxy:mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf

The erroe message complains it can't find user with this mysql lookup.

So you have to either disable 'relay_recipient_maps' or make this user available with this mysql lookup.


But if i disable that, what will happen with the domains where i have a user in? like domain3.com

6

Re: Domain relay not working now

Well i managed to make it work in debian 6 by deleting $relay_recipient_map. Thanks for the help.

I have implemented iredmail + ASSP and so far it is doing better from what i see then amavisd alone (also using amavisd at this point)

I am basically proxying everything through assp.

There is 1 more problem though, it seams that in debian 6 this no longer works:

http://code.google.com/p/iredmail/wiki/DNS_DKIM

root@mail:~# amavisd showkeys
-bash: amavisd: command not found

i tried a find but only found:

root@mail:~# find / -name amavisd
/usr/share/radu/iRedMail-0.7.0-rc3/conf/amavisd
/var/lib/mysql/amavisd

Where is the amavisd located?

Thank you