Sending, receiving, reading, composing, sorting, and generally working with email. For the mail(1) command line utility, see the tag /mail-command.
16
votes
4answers
19k views
How do I send HTML email using linux 'mail' command?
mail -s "subject" xxxxx@gmail.com <test.html
works, but only for plain text email.
What is the correct way to send HTML email using the Linux command mail?
14
votes
3answers
5k views
How to remove “You have mail” welcome message
When I open up my terminal it says "you have mail", anyone has any idea of why? I am running OS X, but since it too is based on Unix and relies on files such as bashrc, bash_profile etc. I thought ...
13
votes
7answers
7k views
Lightweight outgoing SMTP server
What do you use as a lightweight SMTP for outgoing e-mails only?
I am running an app that sends e-mails via SMTP when events occur once in a while, and I don't need a fully featured e-mail server.
...
11
votes
4answers
484 views
Is there a program that can send me a notification e-mail when a process finishes?
I am a computational scientist, and I run a lot of lengthy calculations on Linux. Specifically, I run molecular dynamics (MD) simulations using the GROMACS package. These simulations can take days ...
10
votes
3answers
14k views
Can I change root's email address or forward all mail to an external address?
I'm getting a lot of mail in my root user's mail account. This appears to be mostly reports and errors from things like cron scripts. I'm trying to work though and solve these things, possibly even ...
8
votes
4answers
635 views
A small challenge to familiarize myself with Linux
I would like to learn more about Linux. I briefly went through a few books and quite a few articles online, but the only way to learn something is to actually start using it.
I would like to jump in ...
8
votes
4answers
1k views
How can I customize new mail notification in alpine?
I use alpine as my primary mail reader. While I spend most of my day in the terminal or emacs, it would still be nice to get pretty notification of new mail using notify-bin. Is there any way I can ...
8
votes
3answers
2k views
Simplest way of forwarding all mail from server? [duplicate]
Possible Duplicate:
Lightweight outgoing SMTP server
I am looking for a minimal mail solution (MTA) for a headless server which generate e-mails for local users and and fully qualified ...
7
votes
3answers
830 views
IMAP mail notifier for window manager/task bar?
I am searching for a small new-email-notifier for IMAP mailboxes that displays it's status in the icon-bar (how do you call it?) of a window manager.
Basically some biff/xbiff like tool ported to ...
7
votes
4answers
13k views
Can I set up system mail to use an external SMTP server?
Is it possible to set up system mail on a linux box to be sent via a different smtp server - maybe even with authentication? If so, how do I do this?
If that's unclear, let give an example. If I'm at ...
7
votes
4answers
1k views
Receive Pop/IMAP email and then forward as encrypted to gmail
Basically, I have an email account I can access as POP3 or IMAP. I want to take all incoming emails, encrypt them, and then forward the encrypted version to my gmail account (so I can see the ...
6
votes
4answers
220 views
How can I print a conditional header BEFORE stdout, if there is any output on stdout
I have a process that filters a list of files from a directory (having find check to see if there are files older than a certain period to show a queue is stuck). It may or may not return anything, ...
6
votes
4answers
6k views
What program do I use to check mail?
I'm receiving "You have mail" messages and according to How to remove “You have mail” welcome message I should read my mail with mail. However I cannot find the command in my system (Ubuntu 10.04 ...
6
votes
1answer
378 views
Assistance wanted in removing the “No mail.” notification in MOTD for Ubuntu 10.10
How do I remove the No mail. notification on Ubuntu 10.10 Server?
This occurs when I log in, and is located underneath the message of the day
I have a separate script which uses a different messaging ...
6
votes
1answer
2k views
How to set up local mail retrieval and delivery?
$ mail
No mail for lazer
$
I am able to send mails using mail.
I have unread mails in my inbox as I can see in Outlook.
Why doesn't mail show me my mails? How can I make mail fetch them?
6
votes
2answers
365 views
Best way to archive attachments?
My saved-messages and sent-mail "folders" (actually Unix MBX files)
are huge because of attachments, most of which I've saved to disk
anyway.
I want to keep the messages, but replace the attachment ...
5
votes
1answer
382 views
How to send output to both screen and mail?
I use the following to send an email at the end of a script.
echo "Script finished on `date`" | /usr/bin/Mail -s "Script complete" "myaccount@myserver.com".
However, I want to echo the same message ...
5
votes
4answers
749 views
using the mail command
How do I use the mail command to check email (and send email) from gmail. Does it support labels? I couldn't have figure out where to put the username and password.
I tried to search for instruction ...
5
votes
1answer
2k views
How can I send attachment with ssmtp in Linux?
I can send email from my gmail account by ssmtp in Linux now. But how can I attach files to the email?
5
votes
1answer
975 views
Changing SMTP authentication in mutt based on From e-mail address
I use mutt as my e-mail reader, and nbSMTP as my SMTP client. I check e-mail from a half dozen accounts and sort them into miscellaneous folders in my maildir. Some of the folders are ...
5
votes
1answer
172 views
Postfix configuration - keep the envelops
I have a postfix server that delivers mail and send a copy of the outgoing mail to a second server for content analysis using the following configuration (addresses and IPs have been replaced):
...
4
votes
2answers
128 views
Best way to handle lots of mail on server?
Due to some bad cron jobs I now have ~1600 mail messages, most of them containing the same error log. I would like to quickly group them by subject and delete them, while limiting the chances of ...
4
votes
3answers
476 views
Crontab job not emailing on failure
I have a cron job on Debian:
1 * * * * /home/paradroid/bin/myscript.sh >/dev/null
There is an installed and configured MTA, and I have received emails when the script has a syntax error, so I ...
4
votes
2answers
725 views
What is the MIME equivalent of uuencode for sendmail?
e.g., I've got files I want to send by sendmail but the receiving mailbox (for posting pictures to my blog) will not accept uuencode files a la
$uuencode file | sendmail user@domain
I'm guessing ...
4
votes
2answers
241 views
Disable mail check on login?
When I login to console, e.g tty1, I usually see a message No mail, I know there's some program checking email on login, but I don't use that, how can I disable that command ?
I tried to grep from ...
4
votes
2answers
170 views
How do I delay/schedule sending a message in alpine (/realpine/pine)?
I want to send out my email(s) on Monday morning, not now. Is there a plugin / modification (or feature) for alpine to let me schedule when a message gets sent?
I use an smtp service on my campus. If ...
4
votes
3answers
644 views
How can I apply my procmail filters to my maildir inbox?
Last night I subscribed to a mailing list, and discovered this morning that my procmail filter didn't apply to many of the mailing list messages. Now I have loads of less-important mailing list ...
4
votes
1answer
246 views
Open message with given message-id from command line in mutt
I have the value of the Message ID header of a particular message in my mutt's inbox and I want to open it with a one shot mutt command, read and close.
Currently, I open mutt, do a with ~i ...
4
votes
1answer
127 views
Modify an incoming mail from text/plain to text/html
I'm using mutt to process my mail. There is one sender which declares the wrong content type. The mail arrives with
Content-Type: multipart/alternative;
boundary=--…
and has two parts. They are ...
4
votes
2answers
1k views
How to send mail?
I'm trying to send mail from shell(GNU bash, version 3.2.25(1)-release (x86_64-redhat-linux-gnu)) using;
mail foo@bar.com
After I complete the command, the mail won't show up in the mailbox. What ...
4
votes
3answers
484 views
Recommended mailing list manager for use with Postfix
I have a small VPS (256MB RAM, 12% cap CPU) with Postfix installed that I use to host my mail domains. I want to run a mailing list manager, but would like to avoid Mailman because of its big ...
4
votes
2answers
325 views
configure postfix to accept mail from two WANs
I have a mac server but my question has long left the realm of the GUI. My last hope is a unix forum.
I have a cisco router with two WAN ports. The mac uses postfix 2.8.3. I have correctly ...
3
votes
4answers
128 views
How to stop monthly cron output email
Server is Debian 6.0. In /etc/aliases I have;
root: me@mydomain.com
This is so that root emails get sent directly to me. Today, a monthly script I have placed into /etc/cron.monthly has emailed me ...
3
votes
2answers
2k views
Where does postfix store email?
I can't find any documentation on how postfix stores email. Where is it stored, and in what format? I'm using Ubuntu server 11
3
votes
4answers
1k views
How do I configure mutt to display the date header in my local time zone in the pager?
When I view a message in the pager mutt displays the time in the Date header in UTC rather than my local time zone. The index view displays the local time correctly. I found this old mailing list post ...
3
votes
3answers
215 views
Is this enough for a working mail server?
I have an internet connection with a public, static IPv4 address (the IP address has a PTR record for foo.org domain, and I own foo.org domain, and have nameservers for it elsewhere, mx record is set ...
3
votes
3answers
150 views
Bash port auto upgrading script in cron doesn't work properly?
I've been recently try to write a script to automate checks for new version of ports and software installed on my FreeBSD server. This script is added to root's crontab and fires daily. If I run it ...
3
votes
2answers
465 views
“IPv6 support is disabled” warnings
I get the error while running a script which tries to send emails.
send-mail: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol
send-mail: warning: ...
3
votes
2answers
601 views
how to send email as well as display it out
i am trying to run a script with the output to be emailed and watched(monitored), i try using this code:
this are the output: >emailmessage
echo "output here" >>emailmessage
...
3
votes
1answer
938 views
Does fetchmail support these IMAP features? If so, how?
I'm studying and learning about how mail is handled in linux systems, and one thing has become a source of confusion for me. On my iPhone, via IMAP, I can mark a message in my Gmail inbox as read, or ...
3
votes
3answers
1k views
Help with piped program in sendmail's /etc/aliases
I'm trying some sort of auto-subscription via a homegrown script. I know it can be achieved by mailing lists such as Mailman but I also want to learn at the same time on how to do it by hand.
Here's ...
3
votes
2answers
671 views
Mail vs. mail what is the difference
what is this business about mail and Mail?
[On a centos box] Why mail does not work but wont return an error either while Mail works fine with the exact same syntax?
Mail is basically a link to mail ...
3
votes
2answers
624 views
How to automatically encrypt, sign, and forward root's email?
I've recently been teaching myself about the BSDs and decided to pick up a NetBSD VPS. I don't always log in to this box every day (it's not actually doing anything that important), but I'd still like ...
3
votes
3answers
635 views
Evolution Check mail when Window is closed
In Ubuntu/Gnome under the mail icon in the tray, there are chat, mail, and broadcast. opening the chat logs into your IM accounts and keeps you logged in when closing the main window. But it appears ...
3
votes
3answers
2k views
Setting headers using the /bin/mail command
I have a bash script that I use with nagios that sends notifications by email. The key part of it looks like this:
# $1 (FROM) | $2 (TO) | $3 (SUBJECT) | $4 (BODY)
/usr/bin/printf "%b" "$4" | ...
3
votes
3answers
292 views
Graphical Keyboard-driven Email Client
I use a laptop without a mouse as my main work system, and I could really use a fully keyboard-driven email client with graphics support.
Right now I have the option of using GUI clients, which, even ...
3
votes
2answers
313 views
mutt: mark as read and delete
I discard some messages without reading them. After deleting said messages, however, I am soon alerted to the presence of unread mail in my trash can.
Is there a way to either:
disable the alert ...
3
votes
2answers
956 views
How to recover saved (stored) emails after damage to KMail configuration?
Recently my computer had to be hard-reset, and fsck ran on /home filesystem, producing lots of errors (old HDD drive).
After reset I don't see all my saved emails in KMail (KDE 3.5.3), at least those ...
3
votes
1answer
321 views
Fetching email automatically then reading it locally
My email is kept on a remote server and accessible from anywhere by IMAP.
What I'd like is a mail client that will periodically sync that remote mail to my laptop in the backgroun, so that when I ...
3
votes
1answer
1k views
How can I automate sending mail using a script?
I have in the past heard of using nail for this task, but I can't seem to find it for my distribution (Ubuntu 11.04) in any of the repositories. What program can I use to one-off emails from a shell ...
