Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mutt works for some emails, not for others

Status
Not open for further replies.

zsfhaergta

Programmer
Oct 6, 2008
26
US
Hi,

I am trying to use a unix script to send an email. I send the mail with an attachment using mutt. It works for my gmail account, but not for my school .edu account. Any ideas?
 
Sorry, here are my commands:

This works:
mutt -a QuoteReader_2008-10-06.tar.gz achen1217@gmail.com < /dev/null

This doesn't work:
mutt -a QuoteReader_2008-10-06.tar.gz allenc84@ucla.edu < /dev/null

I've tried it for other email addresses and there were a couple that worked and some that didn't work either.

By not work I just don't receive an email. There was no error message...unless there's a log file I dont know about.

Thanks
 
If it works for one address and not the other, a couple of things could be at issue.
1. The sending server can't determine the MX record for the receiving SMTP domain (ucla.edu)
2. The receiving server isn't responding
3. The receiving server is dropping the message as spam

Of those, I'd say #3 is the most likely. Are you doing some error checking with the script? Logging would be best, as we might be able to see the entire SMTP traffic.

Pat Richard MVP
Plan for performance, and capacity takes care of itself. Plan for capacity, and suffer poor performance.
 
Here is part of a log file from /var/spool/mail...I'm not sure if its the right one. I don't really understand how the mail works...how does it get the sender email address? When I receive the messages it shows that the sender is simply Chen <Allen>



Return-Path: <MAILER-DAEMON>
Received: from localhost (localhost)
by allen (8.13.1/8.13.1) id m92C7bG4001886;
Thu, 2 Oct 2008 08:07:37 -0400
Date: Thu, 2 Oct 2008 08:07:37 -0400
From: Mail Delivery Subsystem <MAILER-DAEMON>
Message-Id: <200810021207.m92C7bG4001886@allen>
To: <root@allen>
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="m92C7bG4001886.1222949257/allen"
Subject: Warning: could not send message for past 4 hours
Auto-Submitted: auto-generated (warning-timeout)

This is a MIME-encapsulated message

--m92C7bG4001886.1222949257/allen

**********************************************
** THIS IS A WARNING MESSAGE ONLY **
** YOU DO NOT NEED TO RESEND YOUR MESSAGE **
**********************************************

The original message was received at Thu, 2 Oct 2008 04:03:03 -0400
from localhost.localdomain [127.0.0.1]

----- Transcript of session follows -----
451 allen: Name server timeout
451 allen: Name server timeout
451 allen: Name server timeout
Warning: message still undelivered after 4 hours
Will keep trying until message is 5 days old
451 allen: Name server timeout

--m92C7bG4001886.1222949257/allen
Content-Type: message/delivery-status

Reporting-MTA: dns; allen
Arrival-Date: Thu, 2 Oct 2008 04:03:03 -0400

Final-Recipient: RFC822; root@allen
Action: delayed
Status: 4.4.3
Last-Attempt-Date: Thu, 2 Oct 2008 08:07:37 -0400
Will-Retry-Until: Tue, 7 Oct 2008 04:03:03 -0400
 
In most scripts I've used for sending mail (such as PHP), you need to specify the sender.

It also looks like the recipient isn't being properly set.

Pat Richard MVP
Plan for performance, and capacity takes care of itself. Plan for capacity, and suffer poor performance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top