Solved

linux mail server

Posted on 2011-02-16
4
387 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
  • 2
4 Comments
 
LVL 76

Expert Comment

by:arnold
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

743 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now