"Relay acces denied" when trying to send an email to the host (postfix)
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I found a lot of sites regarding "relay access denied", but nothing for this particular problem. Which is as follows:
Im using postfix and dovecot with virtual users and domains stored in a mysql-db. Reading mails via imap and pop3 aswell as sending mails to other hosts works like a charm with my mail client. What doesnt is sending mails to my host from another smtp server. Then I get "relay access denied". Using telnet on localhost and using anything for "mail from" and an existing virtual user as rcpt to works. I just cant figure out why. mail.log doesnt say anything about this, clearing it and then sending a mail doesnt append any line
I thought reject_unauth_destination in smtpd_recipient_restrictions should allow any mails for any exisiting virtual user. The user definetly exists and using telnet on localhost does this job fine, just with a mail client from outside it doesnt
Im tired as hell so I guess Im missing something here, hope you can point me to the right direction
Thanks in advance,
daniel
Last edited by ellion0815; 03-13-2008 at 08:09 PM..
Dovecot is an imap/pop server, not a transfer agent
No, you can use dovecot for delivering. I put this into my master.cf
"dovecot unix - n n - - pipe
flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -d ${recipient}"
As I said, sending and receiving works, sending mails to my host jsut works locally, so it has to be something about virtual_domains I guess. Im currently making a hashfile out of it to check.
My mysql-virtual-mailbox-domains.cf:
Code:
# mysql connection stuff
query = SELECT 1 FROM virtual_domains WHERE name='%s'
and mysql-virtual-alias-domains.cf:
Code:
query = SELECT 1 FROM virtual_domains WHERE name='%s'
It seems like postfix thinks it isnt responsible for this domain, however, querying these with postmap -q works
Last edited by ellion0815; 03-14-2008 at 05:26 AM..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.