Relay access denied

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Relay access denied

9acca9
Hi
Im having trouble with config postfix. i not receive anything from any mail
(gmail, yahoo, hotmail).
Hi have this, problem.

Oct 31 10:36:00 postfix postfix/smtpd[4863]: connect from
mail-pg0-f42.google.com[74.125.83.42]
Oct 31 10:36:00 postfix postfix/smtpd[4863]: NOQUEUE: reject: RCPT from
mail-pg0-f42.google.com[74.125.83.42]: 454 4.7.1 <[hidden email]>:
Relay access denied; from=<[hidden email]> to=<[hidden email]>
proto=ESMTP helo=<mail-pg0-f42.google.com>
Oct 31 10:36:00 postfix postfix/smtpd[4863]: disconnect from
mail-pg0-f42.google.com[74.125.83.42]

if i change in my config too
mynetworks=0.0.0.0/0

the mail is accepted but not delivered....

And.......... this
if i put this
relayhost = 192.168.1.12 (zimbra)

the mail is received ok! but........ now i cant send mails... i get this:
error too many hops.

This is my config


queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
myhostname = postfix.mydomain.org.ar
mydomain = mydomain.org.ar
inet_interfaces = all
inet_protocols = all
smtpd_sasl_path = /etc/sasl2/smtpd.conf
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = mydomain.org.ar
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
unknown_local_recipient_reject_code = 550
mynetworks = 0.0.0.0/0
smtpd_recipient_restrictions =
permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
debug_peer_level = 2
debugger_command =
         PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
         ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop








--
Sent from: http://postfix.1071664.n5.nabble.com/Postfix-Users-f2.html
Reply | Threaded
Open this post in threaded view
|

Re: Relay access denied

Noel Jones-2
On 10/31/2017 9:59 AM, 9acca9 wrote:

> Hi
> Im having trouble with config postfix. i not receive anything from any mail
> (gmail, yahoo, hotmail).
> Hi have this, problem.
>
> Oct 31 10:36:00 postfix postfix/smtpd[4863]: connect from
> mail-pg0-f42.google.com[74.125.83.42]
> Oct 31 10:36:00 postfix postfix/smtpd[4863]: NOQUEUE: reject: RCPT from
> mail-pg0-f42.google.com[74.125.83.42]: 454 4.7.1 <[hidden email]>:
> Relay access denied; from=<[hidden email]> to=<[hidden email]>
> proto=ESMTP helo=<mail-pg0-f42.google.com>
> Oct 31 10:36:00 postfix postfix/smtpd[4863]: disconnect from
> mail-pg0-f42.google.com[74.125.83.42]
>

Postfix doesn't know it's responsible for mail addressed to your
domain.  Your domain must be listed in one and only one of
{mydestination, relay_domains, virtual_alias_domains,
virtual_mailbox_domains}.  For mail relayed to another host for
final delivery, typically relay_domains is used.  For details see:
http://www.postfix.org/ADDRESS_CLASS_README.html

http://www.postfix.org/documentation.html


> if i change in my config too
> mynetworks=0.0.0.0/0

Yikes!  Don't do that.




  -- Noel Jones
Reply | Threaded
Open this post in threaded view
|

Re: Relay access denied

9acca9
Ok thanks.
i remove
mynetworks = 0.0.0.0/0

and add

relay_domains = mydomain.org.ar

The mail is accepted but this happend, and the mail dosent arrive:

Oct 31 12:45:04 postfix postfix/smtpd[1843]: connect from
mail-pf0-f181.google.com[209.85.192.181]
Oct 31 12:45:05 postfix postfix/smtpd[1843]: 3BBC2AFC0A:
client=mail-pf0-f181.google.com[209.85.192.181]
Oct 31 12:45:05 postfix postfix/cleanup[1844]: 3BBC2AFC0A:
message-id=<[hidden email]>
Oct 31 12:45:05 postfix postfix/qmgr[1830]: 3BBC2AFC0A:
from=<[hidden email]>, size=2697, nrcpt=1 (queue active)
Oct 31 12:45:05 postfix postfix/smtpd[1846]: connect from
unknown[172.16.0.1]
Oct 31 12:45:05 postfix postfix/smtp[1845]: warning: host
postfix.mydomain.org.ar[190.4.116.195]:25 greeted me with my own hostname
postfix.mydomain.org.ar
Oct 31 12:45:05 postfix postfix/smtp[1845]: warning: host
postfix.mydomain.org.ar[190.4.116.195]:25 replied to HELO/EHLO with my own
hostname postfix.mydomain.org.ar
Oct 31 12:45:05 postfix postfix/smtp[1845]: 3BBC2AFC0A:
to=<[hidden email]>, relay=postfix.mydomain.org.ar[190.4.116.195]:25,
delay=0.23, delays=0.2/0.01/0.02/0, dsn=5.4.6, status=bounced (mail for
mydomain.org.ar loops back to myself)
Oct 31 12:45:05 postfix postfix/smtpd[1846]: disconnect from
unknown[172.16.0.1]
Oct 31 12:45:05 postfix postfix/cleanup[1844]: 734A3AFC0C:
message-id=<[hidden email]>
Oct 31 12:45:05 postfix postfix/qmgr[1830]: 734A3AFC0C: from=<>, size=4695,
nrcpt=1 (queue active)
Oct 31 12:45:05 postfix postfix/bounce[1847]: 3BBC2AFC0A: sender
non-delivery notification: 734A3AFC0C
Oct 31 12:45:05 postfix postfix/qmgr[1830]: 3BBC2AFC0A: removed
Oct 31 12:45:05 postfix postfix/smtpd[1843]: disconnect from
mail-pf0-f181.google.com[209.85.192.181]
Oct 31 12:45:07 postfix postfix/smtp[1848]: 734A3AFC0C:
to=<[hidden email]>, relay=gmail-smtp-in.l.google.com[64.233.190.26]:25,
delay=1.9, delays=0/0.01/0.59/1.3, dsn=2.0.0, status=sent (250 2.0.0 OK
1509465129 w2si557428vkh.72 - gsmtp)
Oct 31 12:45:07 postfix postfix/qmgr[1830]: 734A3AFC0C: removed


190.4.116.195=my public ip (not really)  
172.15.1.1 = a internal ip (firewall)



--
Sent from: http://postfix.1071664.n5.nabble.com/Postfix-Users-f2.html
Reply | Threaded
Open this post in threaded view
|

Re: Relay access denied

Noel Jones-2
On 10/31/2017 11:01 AM, 9acca9 wrote:
> Ok thanks.
> i remove
> mynetworks = 0.0.0.0/0
>
> and add
>
> relay_domains = mydomain.org.ar
>
> The mail is accepted but this happend, and the mail dosent arrive:

http://www.postfix.org/STANDARD_CONFIGURATION_README.html#firewall