Postfix transport
Hi!
I've just installed a new mailserver with Postfix, MySQL, Dovecot and Maia-Mailguard. I'm also gonna use this server as a "relay" for other servers so their mail gets spam/virus checked om my server and then over to the mailserver with the accounts on it. Code:
DNS example.com -> 192.168.0.1 (to my server, spamcheck) Anyway, I put this in /etc/postfix/transport: Code:
example.com smtp:[smtp.example.com] Code:
postmap transport Code:
Feb 11 11:49:38 example.com postfix/smtpd[24775]: NOQUEUE: reject: RCPT from blu0-omc2-s8.blu0.hotmail.com[65.55.111.83]: 550 5.1.1 <test@example.com>: Recipient address rejected: User unknown in virtual mailbox table; from=<test@hotmail.com> to=<test@example.com> proto=ESMTP helo=<blu0-omc2-s8.blu0.hotmail.com> So how/can I do so if the domain exists in transport-file, it doesn't check the database if the user exists and just process the mail and send it away? My /etc/postfix/main.cf looks like this: Code:
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) Thanks! Edit: I might have to say that my server is a pop3/imap server too, so I already have email accounts on it but I also want so other servers can use it as a spamcheck server. Edit 2: /etc/postfix/master.cf Code:
smtp inet n - - - - smtpd Code:
user = postfix |
It looks like Postfix thinks it is hosting mail for example.com. I would try two things:
1. Tell / Allow Postfix to relay mail for example.com by adding the following to main.cf: Code:
relay_domains = example.com The part of the error that reads "User unknown in virtual mailbox table" makes me believe that there is something in those tables. Hope that helps. |
I tried adding:
Code:
relay_domains = example.com So I looked around little in the postfix documentation and found: Quote:
Do I have to do some more configuration? I edited my first post and added my master.cf -file too. And one more thing. It would be awesome if I could fix so I can save the transport settings in my mysql database instead of in a file, because I am planing on expanding with one more mailserver so they are gonna use the same database information about users and stuff. |
Somone at the postfix mailing list told me that I had mis-configured the virtual_mailbox_maps though I have no idea what I might have mis-configured..
I added the mysql-config for virtual_mailbox_maps in my first post. |
Hello,
For troubleshooting purposes, maybe try commenting out your virtual mailbox information and see if you get the same error. Next, try creating a local user with the same name as one of the email addresses you are trying to send through the gateway -- does it get delivered? If so, then it is still an issue with your mail gateway thinking that it hosts mail for that domain. |
The problem got fixed after a reboot. Don't know why though..
|
All times are GMT -5. The time now is 06:18 AM. |