View Full Version : Relay access denied
martien
1st December 2008, 11:29
Hello. I installed and configured postfix wit courier and mysql accounts, but i have a little problem:
When I try to send mail using postfix (i do that by telnet localhost 25) i successfully sent that mail to (for example my gmail account).
The email actually sents and in my google mailbox i have it delivered. But when I try to reply/or to send mail to my virtual account and google tells me that:
Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 554 554 5.7.1 <webmaster@[mydomain]>: Relay access denied (state 14).
Does anyone have idea for this situation?
topdog
1st December 2008, 14:00
Your configuration is not working properly the virtual users are not being recognized
martien
1st December 2008, 23:36
Your configuration is not working properly the virtual users are not being recognized
But when i try to telnet localhost 110 and i successfully login with the virtual user. The problem is that i cant get mails. Maybe its the directory for vmail users, i don't know, but definitely the users are accepted. Some ideas? Do you want output of some files?
EDIT:
When i try to send mail from my gmail account here comes that in mail.log:
Dec 2 00:22:30 stf postfix/smtpd[7111]: connect from an-out-0708.google.com[209.85.132.241]
Dec 2 00:22:30 stf postfix/smtpd[7111]: NOQUEUE: reject: RCPT from an-out-0708.google.com[209.85.132.241]: 554 5.7.1 <webmaster@martien.biz>: Relay access denied; from=<[myaccount]@gmail.com> to=<webmaster@[mydomain]> proto=ESMTP helo=<an-out-0708.google.com>
Dec 2 00:22:31 stf postfix/smtpd[7111]: disconnect from an-out-0708.google.com[209.85.132.241]
topdog
2nd December 2008, 09:31
port 110 is pop3 port it has nothing to do with this, your postfix configuration is incorrect please post your postfix main.cf.
martien
2nd December 2008, 21:00
port 110 is pop3 port it has nothing to do with this, your postfix configuration is incorrect please post your postfix main.cf.
my main.cf looks like this:
myhostname = mail.<mydomain>
mydomain = <mydomain>
mydestination = stf, localhost.localdomain, mail.<mydomain>, localhost, $mydomain
home_mailbox = Maildir/
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.0.0.0/8 88.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
local_recipient_maps = $alias_maps $virtual_mailbox_maps unix:passwd.byname
html_directory = /usr/share/doc/postfix/html
#virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_forwardings.cf mysql:/etc/postfix/mysql-virtual_email2email.cf
#virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_domains.cf
#virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_mailboxes.cf
#virtual_mailbox_base = /home/vmail
#virtual_uid_maps = static:5000
#virtual_gid_maps = static:5000
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated,check_recipient_access mysql:/etc/postfix/mysql-recipient.cf, reject_unauth_destination
smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/mysql-sender.cf
smtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql-client.cf
alias_maps = mysql:/etc/postfix/mysql-aliases.cf
relocated_maps = mysql:/etc/postfix/mysql-relocated.cf
transport_maps = mysql:/etc/postfix/mysql-transport.cf
virtual_maps = mysql:/etc/postfix/mysql-virtual.cf
virtual_mailbox_base = /home/vmail
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-maps.cf
virtual_uid_maps = mysql:/etc/postfix/mysql-virtual-uid.cf
virtual_gid_maps = mysql:/etc/postfix/mysql-virtual-gid.cf
and now it tries to send me mail but postfix reject it cause it comes to myself (i mean this:
...relay=mail.<mydomain>[xxx.xxx.xxx.xxx]:25, delay=0.71... status=bounced (mail for mail.<mydomain> loops back to myself))
topdog
3rd December 2008, 10:39
That is because you do not have virtual_mailbox_domains
martien
3rd December 2008, 20:55
That is because you do not have virtual_mailbox_domains
i will try it now, hope it works
EDIT:well its the same. I added virtual_mailbox_domains, i added table and query in file. I included the file, reloaded postfix and its the same. The only thing was that postfix warned me that i have <mydomain> in virtual_mailbox_domains and in mydestination (that means the mysql query worked) then i removed <mydomain> from mydestination and its the same. Postfix rejects mails again. I think the error is somewhere with the accepted destinations.. but i can't find it..
martien
5th December 2008, 22:44
I found where the error is, but i dont have any idea what to do. Here is the thing: The error comes with the database when in the postfix_transport table i have <mydomain> with destination smtp:(<mail.mydomain>/<mydomain>/[xxx.xxx.xxx]/etc) and postfix bounces the incoming mails with <the value after smtp: in my database> loops back to myself. I readed some howtos and when i change it to maildrop: and the status for the incoming mails automatically was set to sent(delivered via maildrop service) so i found where the error is. So i have two choices: to look for smtp configuration or to look for maildrop configuration.. Any ideas what to do?
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.