Quote:
Originally Posted by scasey
Um. If the email is "getting bounced everytime" then it's not "sending mail successfully."
My guess is that you've not setup the authentication for your relay server correctly.
|
Thank You for your reply.
The mails are working, at least up to now. I can send mails using command line(mail command) and web application.
The issue is without doing anything, it is creating entry in log continuously. Whenever I run `mailq`, there is one entry in log in which 'from' and 'to' address is same. Every second the 6 lines error (mentioned in original post) is getting added in log. In every minute almost 55 mails are added as Bounced in log.
I have stopped Postfix server as this issue is not solved. Here are my added lines in main.cf.
Code:
relayhost = [smtp.server.net]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =
smtp_tls_CAfile = /etc/postfix/cacert.pem
smtp_use_tls = yes
smtp_sasl_mechanism_filter = login
canonical_maps = regexp:/etc/postfix/canonical
canonical_classes = envelope_sender
This is my /etc/postfix/sasl_passwd
Code:
[smtp.server.net]:587 username@mydomain.com:complexpassword
This is /etc/postfix/canonical
Code:
// username@mydomain.com
Apart from these, I haven't changed a character in Postfix files. Rest all are default settings.
If I do not add this line
Code:
smtp_sasl_mechanism_filter = login
I get error
Code:
SASL authentication failed; cannot authenticate to server smtp.server.net[58.48.xx.xx]: generic failure
If you suggest anything, it will be great help.
Thank you