LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-17-2019, 01:00 AM   #1
unclesamcrazy
Member
 
Registered: May 2013
Posts: 200

Rep: Reputation: 1
Postfix keeps creating mail in queue to send to sender's mail address after SMTP integration


I have configured Postfix to send mail by added SMTP credentials. It is sending mail successfully. The issue is it keeps adding a mail in queue and it is getting bounced everytime. The 'from address' and 'to address' is same which is my SMTP login email id, the email from which I want to send emails.

This is the log entry which is continuously getting added in mail.log without skipping one second.

Code:
Jul 17 05:31:57 ip-10-0-100-86 postfix/smtp[23014]: 5D8F96507F: to=<username@mydomain.com>, relay=smtp.server.net[58.48.xx.xx]:587, delay=1.3, delays=0/0/1/0.25, dsn=5.7.60, status=bounced (host smtp.server.net[58.48.xx.xx] said: 550 5.7.60 SMTP; Client does not have permissions to send as this sender (in reply to end of DATA command))
Jul 17 05:31:57 ip-10-0-100-86 postfix/cleanup[23015]: AC0C6650CD: message-id=<20190717053157.AC0C6650CD@ip-172-31-38-186.ec2.internal>
Jul 17 05:31:57 ip-10-0-100-86 postfix/qmgr[15923]: AC0C6650CD: from=<username@mydomain.com>, size=2926, nrcpt=1 (queue active)
Jul 17 05:31:57 ip-10-0-100-86 postfix/bounce[23016]: 5D8F96507F: sender non-delivery notification: AC0C6650CD
Jul 17 05:31:57 ip-10-0-100-86 postfix/qmgr[15923]: 5D8F96507F: removed
Jul 17 05:31:57 ip-10-0-100-86 postfix/smtp[23014]: warning: smtp.server.net[58.48.xx.xx]:587 offered no supported AUTH mechanisms: 'GSSAPI NTLM'
username@mydomain.com is the smtp login email address and I send mails using same email address.
I am worried if there will be 55-60 mails will be bounced in a minute, my SMTP will be blocked. Please help to fix this issue.

Last edited by unclesamcrazy; 07-17-2019 at 01:03 AM.
 
Old 07-18-2019, 06:53 AM   #2
GabrelW
LQ Newbie
 
Registered: Jul 2019
Location: UK
Posts: 1

Rep: Reputation: Disabled
Which Postfix version are you using?

Last edited by GabrelW; 07-18-2019 at 07:04 AM. Reason: Typo
 
Old 07-18-2019, 09:02 AM   #3
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,725

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
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.
 
Old 07-19-2019, 04:50 AM   #4
unclesamcrazy
Member
 
Registered: May 2013
Posts: 200

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by scasey View Post
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
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Emails from postfix to external address display sender as 'user@mail.example.net' YellowApple Slackware 5 07-12-2013 03:25 AM
Postfix SMTP relay via gmail using original sender email address? bdobolina Linux - Server 4 05-01-2012 06:21 AM
postfix, how to reject sender IP address after N times attempting Winanjaya Linux - Security 12 02-07-2012 06:57 PM
Postfix giving me "SMTP server error: 5.5.0 Sender already specified" joshuajohnhutchison Linux - Newbie 1 11-30-2009 08:02 PM
Postfix : mail cannot send to send outside ( can send/receive locally) bobbinsupport Linux - Networking 3 12-15-2007 10:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration