HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   Postfix / DBmail delivery issue. (http://www.howtoforge.com/forums/showthread.php?t=30985)

touchtecservers 5th February 2009 17:19

Postfix / DBmail delivery issue.
 
Hi, I am currently setting up a server that uses Postfix and DBmail to store email accounts for a wide variety of domain names.

Basically, I just want postfix to deliver whatever email it receives to DBmail if dbmail has the email address in its alias or usernames table.

I followed the dbmail guide, and originally left local_receipient_maps empty and added the mailbox_transport to use the dbmail-lmtp i set up in the master.cf file.

I then set up two dbmail users with the username the same as the mail alias. For the purposes of this thread, I will call them user1@domain1.com and user2@domain2.com.

Now the DNS records for domain1 point to the server's IP, this includes of course the MX record. The DNS record for domain2 only has the MX record pointing at the server's IP. However, using the settings described by dbmail, upon receiving an email for the above aliases/usernames Postfix Rejects the email saying "relay access denied".

I managed to sort this out by creating a new database table for allowed domains for the mydestination field. Now however, though it receives the mail - it bounces it and forwards it to the root account.

I have been search google, and cannot find any information.

Please help.

touchtecservers 6th February 2009 10:40

I fixed it
 
I fixed it

All I had to do was change mailbox_transport to virtual_transport and provide a mysql lookup to a domain table for the virtual domains.


All times are GMT +2. The time now is 02:14.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.