Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recipient address rejected: Access denied #76

Open
hertell opened this issue Dec 2, 2019 · 3 comments
Open

Recipient address rejected: Access denied #76

hertell opened this issue Dec 2, 2019 · 3 comments

Comments

@hertell
Copy link

hertell commented Dec 2, 2019

I get just "Recipient address rejected: Access denied" errors with the example-setup. I'm pretty sure I missing something, but i can't figure it out :-(

class { 'postfix':
  mynetworks           =>  [ '127.0.0.1/32',"${ipaddress_eth0}/32" ],
  ipv6                 => false,
  inetinterfaces       => 'all',
  mydestination        => [ 'mysub.example.com', $::fqdn, 'localhost' ],
  myhostname           => 'mysub.example.com',
  smtpdbanner          => 'mysub.example.com ESMTP',
}
class { 'postfix::vmail': }
postfix::vmail::alias { '[email protected]':
  aliasto              => [ '[email protected]' ],
}
postfix::vmail::account { '[email protected]':
  accountname => 'virtual_user1',
  domain      => 'mysub.example.com',
  password    => 'secretpassw0rd',
}

I get this error

Dec  2 04:00:44 srv6 private/smtpd[4933]: NOQUEUE: reject: RCPT from mail-lj1-f176.google.com[209.85.208.176]: 554 5.7.1 <[email protected]>: Recipient address rejected: Access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail-lj1-f176.google.com>```
@hertell
Copy link
Author

hertell commented Dec 2, 2019

I got it fixed with this (had to remove the last 'reject'):

  class { 'postfix::vmail':
    smtpd_recipient_restrictions => ['permit_inet_interfaces,permit_mynetworks,reject_authenticated_sender_login_mismatch,permit_sasl_authenticated,reject_unauth_destination'],
    smtpd_relay_restrictions     => ['permit_inet_interfaces,permit_mynetworks,reject_authenticated_sender_login_mismatch,permit_sasl_authenticated,reject_unauth_destination'],
  }

@jordiprats
Copy link
Contributor

Hi,
What distro are you using?

thanks,

@hertell
Copy link
Author

hertell commented Dec 3, 2019

Embarrassing that I forgot the most important detail.. Sorry!

I'm running Centos 7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants