LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-08-2005, 09:07 PM   #1
a5an0
LQ Newbie
 
Registered: May 2005
Distribution: Debian, Ubuntu, OpenBSD (UNIX), Solaris 10 (UNIX), Fedora Core 3
Posts: 4

Rep: Reputation: 0
problem with mail command


Hey all. I wrote a short script that sends an email to a list of addresses defined in a text file. It works great with gmail and a few other private email accounts, but for some reason all my users on hotmail don't get it. Any ideas? Has anyone heard of a problem with hotmail or anything? any help or comments would be appreciated. TIA.

PS, heres the script, for your enjoyment, education, or if you wish to flame me for it. :P

Thanks again.

#!/bin/bash
for email in $(cat emails.txt); do
echo "Sending mail to $email"
mail < message.txt $email -s "<subject goes here>" -- -f events@<company name>.com
done
exit 0
 
Old 05-08-2005, 09:18 PM   #2
kencaz
Senior Member
 
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468

Rep: Reputation: 48
I use the same program and can send to all accounts but hotmail... Not much you can do except probably pay MS more money... I stopped using Hotmail...

KC
 
Old 05-09-2005, 06:02 AM   #3
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
I can only speculate on how the hotmail folks have their MTA's configured, but I am able to send to hotmail. A couple of things to verify at your end...

1) SPF records added to DNS zone.
2) Both forward and reverse lookup names match for your MTA.
3) Your MTA's IP address is not listed on any RBL lists.

If all else fails, configure your MTA to send hotmail.com through your ISP's MTA.

Also, when reviewing my daily logfiles - I have noticed that the hotmail servers seem to reject the initial attempt at delivery. But the second (queued) attempt always works. Usually this means the remote MTA is configured with "greylisting". But you never know.
 
  


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
Using the MAIL command iatemyfingers Linux - Newbie 1 06-29-2005 11:56 AM
Cannot send mail with mail() command in PHP 4.3.4, Apache 2.0.48, Mandrake Linux 10 arcanum Linux - General 3 06-27-2004 06:06 PM
mail is not delivered thru the mail command aadilkhan Linux - General 1 11-18-2003 05:37 PM
cannot receive mail -- mail command andy18 Linux - General 1 09-09-2003 03:13 PM
Using the 'mail' command to mail a file Crashed_Again Linux - Software 2 08-08-2003 05:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:09 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