Solved

linux mail server

Posted on 2011-02-16
4
390 Views
Last Modified: 2012-08-13
Dear experts:

Our linux server fetches the mails from the outsourced web hosting mail server,  we have huge contact list of email accounts the team wants to send a bulk mail (one mail to many users) but the receiving person should receive should know the mail has only come to him instead of bulk, to be clear the team sends one mail to many contacts with one go but the mail should reach to the individuals and they should not feel it is a bulk email , request you to please help me in getting this, i think script to be done , please please help.
0
Comment
Question by:D_wathi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 78

Expert Comment

by:arnold
ID: 34907879
The list of recipient addresses need to be in he Bcc: field.
You can configure an alias on the server that is a distribution list.
0
 
LVL 7

Expert Comment

by:mchkorg
ID: 34914612
arnold is right, if you want to send just one e-mail, provided the remote server allows such a big recipients list (how big is it??)
But Bcc will show something like "undisclosed-recipients", suggesting it's a bulk mailing and everyone is "blind"
A distribution list might help, but the recipient will be the list, not the real recipient's email address ; depending on the tool you use. Those tools might end up sending one e-mail per recipient.

That's why I'd suggest the following :

*if* you can send one-mail per recipient, that will be correct from the recipient's point of view, but the sending server might not allow you to send tons of e-mail in a short period of time.
Anyway, you could write a simple script with mutt for example :

for recip in `cat your_email_recipient_list.txt `
do
  mutt -s "subject" -a attachedfile $recip < emailcontent
  sleep 3
done

One e-mail each 3 seconds.

I hope it might help you
0
 

Author Comment

by:D_wathi
ID: 34923815
Sir, Thank you very much for the reply, request you to let me know the steps to perform this ,
first will create a text file naming recipient _list.txt and add all the 500 email address with the semi colon separated in this text file then execute the below command
for recip in 'cat recipient_list.txt'
do
mutt -s "quotation" -a attachedfile $recip < email content # this i did not understand request you to explain the below :
-a attachedfile $ recip
< email content # here should we type the content like dear sir and body of the letter . please help me in this.
0
 
LVL 7

Accepted Solution

by:
mchkorg earned 500 total points
ID: 34926846
Hi,

Your recipient_list.txt should be one e-mail per line or separated by spaces
1) You can test your loop and recipient_list.txt content with this, for example :
for recip in `cat recipient_list.txt`
do
  echo I will send to $recip
  sleep 3
done

Open in new window


It'll just print a line with the email read from the file

You should see something like :
I will send to first@email.com
I will send to seconde@email.com
and so on...

Test it with a small recipient list you know (you, your personnal email, your corporate email, one colleague and so on). 2 reasons :
- if you messed up something, your customer won't see.
- to be sure it works and to check some anti-spam tool behaviour. Use a gmail recipient for example.

2) mutt command-line explanation:
The basic is:
mutt -s "my_subject" some_recipient@somewhere.com < email_body_as_a_text_file.txt
You can add "-a" to attach a file
Check the other parameters with "man mutt" (to change the from field for example)

3) A real example should then be :
for i in `cat recip_list.txt`
do
   echo sending to $recip
   mutt -a quotation.pdf -s "our quotation" $recip < body.txt
   sleep 3
done

With recip_list.txt like :
one@email.com
another@gmail.com
...

Open in new window


And body.txt like :
Dear sir or madam,
Please find you quotation........
...
Regards

Open in new window



Again, Test it with a small recipient list you know (you, your personnal email, your corporate email, one colleague and so on)


Leaving soon on vacation. Not sure I can answer this week-end and next week. I hope it'll work (I use it a lot this way)
The only limitation is the basic e-mail : just some text. But this is a good idea to avoid being flagged as a spammer.

Regards
0

Featured Post

Save the day with this special offer from ATEN!

Save 30% on the CV211 using promo code EXPERTS30 now through April 30th. The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently, an awarded photographer, Selina De Maeyer (http://www.selinademaeyer.com/), completed a photo shoot of a beautiful event (http://www.sintjacobantwerpen.be/verslag-en-fotoreportage-van-de-sacramentsprocessie-door-antwerpen#thumbnails) in An…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question