HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs (http://www.howtoforge.com/forums/showthread.php?t=2323)

Rocky 31st January 2006 19:47

Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs
 
I have sucessfully set up Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAssassin, ClamAV) using Debian. However, I have a question.
If I wanted to catch mails coming to domainA and forward them over to my exchange box, do I have to set up the virtual users? I know I have to create the domain and transport entries, which I've already done.:confused:

till 31st January 2006 20:02

If you forward the emails with a transport to your exchange server, you dont have to create the virtual users. Or did you get any errors?

Rocky 31st January 2006 20:30

Below is how my system is configure:

1- I have entered damainA into the domain table.
2- I have entered domainA --> smtp:[192.168.x.x] into the transport table.

Now when I try to send mails to someone@domainA.com, it rejects saying Permanent Failure:
550_<malli@domainA.com>:_Recipient_address_rejecte d:_User_unknown_in_virtual_m
ailbox_table

till 31st January 2006 20:47

Please try and remove the domain in the domain table.

Rocky 31st January 2006 20:53

I removed the domain and now I'm getting the following error:
Permanent Failure: 554_<malli@domainA.com>:_Relay_access_denied

till 31st January 2006 21:03

Did you issue a:

postfix reload

after you inserted the transport?

Rocky 31st January 2006 21:22

I confiigured the transport table with the following:
domainA.com ---> smtp:[192.168.x.x]

Then I issued the following command:
postfix reload.

Below is what I have in my /var/log/mail.log file after issuing the postfix reload command:
Jan 31 15:22:27 server1 postfix/smtpd[16393]: connect from rwcrmhc11.comcast.net[204.127.192.81]
Jan 31 15:22:27 server1 postfix/smtpd[16393]: NOQUEUE: reject: RCPT from rwcrmhc11.comcast.net[204.127.192.81]: 554 <malli@mc
rirents.com>: Relay access denied; from=<roc1479@comcast.net> to=<malli@mcrirents.com> proto=ESMTP helo=<rwcrmhc11.comcast.ne
t>
Jan 31 15:22:29 server1 postfix/smtpd[16393]: disconnect from rwcrmhc11.comcast.net[204.127.192.81]

I would like to use it to filter the emails for spam and viruses for 2 domains only.

falko 2nd February 2006 12:43

You must have the domain in the domain table, and then you must put your transport in the transport table. Please restart Postfix after the change to the transport table.

Rocky 2nd February 2006 13:34

When I do that, I get the following error:
Permanent Failure: 550_<malli@domainA.com>:_Recipient_address_rejecte d:_User_unknown_in_virtual_mailbox_table


Any suggestions?

falko 2nd February 2006 18:55

What does /etc/postfix/main.cf look like?


All times are GMT +2. The time now is 22:45.

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