Register
It is currently Fri Dec 19, 2014 10:50 am

mail, mailx & co


All times are UTC - 6 hours


Post new topic Reply to topic  [ 4 posts ] 
Author Message
 PostPosted: Tue Jul 12, 2011 6:49 pm   

Joined: Fri Jun 24, 2011 2:46 pm
Posts: 8
Hi everyone,

I CANNOT run correctly the mail command !

I tried everything : no result.

Example :

mailx name@aim.com
[subject]
test
(corpus)
blablabla
.[enter]

no error in the terminal.

nothing in the mailbox......

I tried everything, each command doesn't works...

The only thing I got is mails into the terminal inbox with "no delivery" messages...

HELP !!!

Note : I'm running under mac os x.


Top
 Profile  
 PostPosted: Wed Jul 13, 2011 9:34 am   
Moderator
User avatar

Joined: Wed May 03, 2006 2:05 pm
Posts: 242
Hello!

Those "no delivery" messages *should* have information in them as to *why* the mail wasn't delivered.

You might also take a look at /var/log/mail.log to see if there are any obvious errors there.

If you can post what you find there, that might help us point you in the right direction :)


Top
 Profile YIM  
 PostPosted: Wed Jul 13, 2011 10:24 am   

Joined: Fri Jun 24, 2011 2:46 pm
Posts: 8
in my terminal mailbox, the mail delivery failed messages:

This is the mail system at host MacBook-Pro-de-user.local.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

The mail system

Reporting-MTA: dns; MacBook-Pro-user.local
X-Postfix-Queue-ID: 1C1D59A3F1A
X-Postfix-Sender: rfc822; user@MacBook-Pro-user.local
Arrival-Date: Sat, 25 Jun 2011 22:30:46 +0200 (CEST)

Final-Recipient: rfc822; name@gmail.com
Action: failed
Status: 4.4.1
Diagnostic-Code: X-Postfix; connect to
alt4.gmail-smtp-in.l.google.com[74.125.91.27]:25: Connection refused

I think this line is where the problem is. Don't you ?

you know the problem with SMTP... because of spamming. It could be the cause...

in /var/log/mail.log I have, for example (the last try):


Jul 13 02:46:00 new-host-2 postfix/smtp[35682]: B50AE9E7822: to=<name@gmail.com>, relay=none, delay=16, delays=1.1/0.01/15/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=gmail.com type=MX: Host not found, try again)
Jul 13 02:46:43 new-host-2 postfix/master[35673]: master exit time has arrived


Hope you understand something!

Is it my port which isn't open ?

Donno..

Thx.


Top
 Profile  
 PostPosted: Wed Jul 13, 2011 1:36 pm   
Moderator
User avatar

Joined: Wed May 03, 2006 2:05 pm
Posts: 242
Okay, looks like there are two different issues being reported here...

First:
status=deferred (Host or domain name not found. Name service error for name=gmail.com type=MX: Host not found, try again)

^^This means that the computer (your macbook?) was not able to resolve an mx record for gmail.com. What do you get if you run "host -a gmail.com" or "dig -t MX gmail.com"?


Second:
The email message that you posted is from a different day, Saturday June 25th. The error there indicates that it WAS able to look up the MX record, but the connection was refused:


Diagnostic-Code: X-Postfix; connect to
alt4.gmail-smtp-in.l.google.com[74.125.91.27]:25: Connection refused

This could mean that you had a network issue, or that particular mail server wasn't accepting connections, or you were blocked for some reason (either on google's side, or a local firewall that filters outbound connections).

If the host or dig commands succeed, try a connection test like this one to see if you can establish a connection:
Code:
echo | telnet alt4.gmail-smtp-in.l.google.com 25


Top
 Profile YIM  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Google [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP