mail command
Hello again,
I'm trying to use the mail command, but although the command, the arguments and the email I give in the terminal are accepted without complaint, the mails don't actually arrive at the given email address. What and where might I check the setting of the mailx command, to make sure it's using the right.... stuff, to send mail. Or, if my desktop can connect to the internet (it can) should mailx then just magicaly work somehow? |
Any suggestions at all, welcome.
|
This one?
http://linux.about.com/od/commands/l/blcmdl1_Mail.htm I always use sendEmail to send emails from the command line. It's a handy perl program. Just untar and use. I like it because you can set the SMTP server and user specifically to test access. Plus, it's nice for automating scripts. Like sending email through another mail server to let you know your mail server is broke. http://caspian.dotconf.net/menu/Software/SendEmail/ |
http://linux.about.com/od/commands/l/blcmdl1_Mail.htm
, yup, that's command I'm having a problem with, I used Code:
apt-get install mailx Code:
echo "My test" | mail -s "My test mail" hashbang@binbash.net < /home/file.xls Will check the sendEmail command. |
Returning to the question about the "mail" command, I don't understand why it doesn't work... the only refference I can find to configuration of the command relates to mail.rc, there's nothing about giving it pop/smtp settings anywhere.... but lots of examples where it's used with actual email addresses, not just the account names of other users on the same machine.
Does anyone know anything about this command at all? |
If your using maildir (as opposed to mbox) than the mail command won't recognize that you have mail unless you let the mail command know that mail is delivered in the maildir format. I never really figured out how to get the mail command to read maildirs, so I can't help you there. (maybe PINE or ELM can do this?)
mbox vs maildir http://www.linux-mail.info/mbox-mail...orage-formats/ Maybe this will help: http://ubuntuforums.org/archive/index.php/t-528433.html |
Thanks 3rods! Although at this stage (for what I'm trying to do) it's more about why "mail" doesn't send.
|
Quote:
It would allow mail (or mailx) to read mail from the command line. There's nothing that says you have to use maildir over mbox. (Well, there is actually, maildir is a better format - less prone to corruption and faster retrival.) Rather than trying to retrofit something, you could just stick with the mbox format. Just a thought. |
Has this been solved? I am having the same problem using fc6.
In xterm I send a message like this: Code:
Code:
You have new mail in /var/spool/mail/hlenderk Code:
----- The following addresses had permanent fatal errors ----- Code:
Date: Mon, 19 May 2008 21:57:36 -0400 (seems like I should, like I do for regular email through thunderbird) I see nothing in 'man mail' on how to configure this. Thanks Howard |
All times are GMT -5. The time now is 10:45 AM. |