• We did not send an email asking for donations - please read this post.

how to send email to Distribution list from CentOS

Kandasamy Murugan

New Member
Joined
Jan 26, 2019
Messages
2
Reaction score
0
Credits
0
I have a Centos linux server for my team, which is a part of corp network,I have scripts running in the server that trigger reports (bug reports, productivity reports etc) from this server to the team for tracking purposes. When I use email alias in the To column, the mails are not going. If I use individual emails IDs to send reports, its working.
Is there any restriction in sending mails to Group IDs? Can you pls sort this issue?
[[email protected]*******~]# echo "Subject: Test Email from Kanda" | sendmail ENI-Desktop [email protected]*********.com<mailto:enidesktopsupp[email protected]**********.com> <-- Mails to ENI-Desktop Support. ( Aliases) This is not working
[[email protected]******* ~]# echo "Subject: Test Email from Kanda" | sendmail [email protected]************.com<mailto:[email protected]************.com> <-- This works fine.
 


wizardfromoz

Administrator
Staff member
Gold Supporter
Joined
Apr 30, 2017
Messages
7,810
Reaction score
6,633
Credits
28,852
G'day @Kandasamy Murugan and welcome to linux.org :)

I am moving this Thread to "Mail Server" where it will receive the attention you need.

Good luck

Chris Turner
wizardfromoz
 

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
5,000
Reaction score
3,645
Credits
36,440
You would have to search in your maillog for both the mail delivery attempts for the mails sent to [email protected] and [email protected]. This way you can find the mail id's and use those to track the route the mail is taking and following the route by checking different mailserver maillog files to the eventually find an error message in one of your mailservers maillogs why the message to the list could not be delivered. You could trace the mail that is arriving in the same way to see what route it is taking and compare it to the route that isn't working. I would suspect the distribution list running on a separate server and taking a different route to arrive at the final destination than the mails going directly to the personal mailboxes. So somewhere along the way there is probably a configuration setting not set right and the mail is being rejected somewhere and therefore never arriving at it's final destination.
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Members online


Top