#1  
Old 1st December 2008, 10:29
martien martien is offline
Junior Member
 
Join Date: Oct 2007
Posts: 26
Thanks: 2
Thanked 2 Times in 2 Posts
Default Relay access denied

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:
Quote:
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?
Reply With Quote
Sponsored Links
  #2  
Old 1st December 2008, 13:00
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
Default

Your configuration is not working properly the virtual users are not being recognized
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #3  
Old 1st December 2008, 22:36
martien martien is offline
Junior Member
 
Join Date: Oct 2007
Posts: 26
Thanks: 2
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by topdog View Post
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:
Quote:
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]

Last edited by martien; 1st December 2008 at 23:25.
Reply With Quote
  #4  
Old 2nd December 2008, 08:31
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
Default

port 110 is pop3 port it has nothing to do with this, your postfix configuration is incorrect please post your postfix main.cf.
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #5  
Old 2nd December 2008, 20:00
martien martien is offline
Junior Member
 
Join Date: Oct 2007
Posts: 26
Thanks: 2
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by topdog View Post
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:
Quote:
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 unixasswd.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))

Last edited by martien; 2nd December 2008 at 20:23.
Reply With Quote
  #6  
Old 3rd December 2008, 09:39
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
Default

That is because you do not have virtual_mailbox_domains
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #7  
Old 3rd December 2008, 19:55
martien martien is offline
Junior Member
 
Join Date: Oct 2007
Posts: 26
Thanks: 2
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by topdog View Post
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..

Last edited by martien; 3rd December 2008 at 20:21.
Reply With Quote
  #8  
Old 5th December 2008, 21:44
martien martien is offline
Junior Member
 
Join Date: Oct 2007
Posts: 26
Thanks: 2
Thanked 2 Times in 2 Posts
 
Default

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?
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix: 554 5.7.1 Relay access denied Crog Server Operation 4 26th March 2010 14:19
Relay Access Denied, Outlook (Ubuntu Server) wurzel Server Operation 2 25th June 2008 21:46
postfix 554 Relay access denied ratcateme Server Operation 1 29th May 2008 18:52
postfix Relay access denied Jshel Installation/Configuration 4 30th March 2007 05:15
Questions in regards to ISP-Server Setup - Ubuntu 5.10 "Breezy Badger" rbrantley HOWTO-Related Questions 16 10th April 2006 18:26


All times are GMT +2. The time now is 13:34.


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