Sending, receiving, reading, composing, sorting, and generally working with email. For the mail(1) command line utility, see the tag /mail-command.

learn more… | top users | synonyms (1)

26
votes
4answers
35k 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?
19
votes
3answers
8k 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 ...
16
votes
4answers
2k 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 ...
15
votes
7answers
13k 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. ...
14
votes
3answers
29k views

Can I change root's email address or forward it 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 ...
14
votes
4answers
32k 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 ...
10
votes
4answers
13k 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 ...
9
votes
3answers
321 views

Search for mail content with mutt

Is it possible to use to search for specific mail content using built-in functionality of Mutt? Or, as last resort, how can I configure grep to be used in Mutt ? The documentation only mentions the ...
9
votes
3answers
4k 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 ...
8
votes
4answers
743 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
3answers
1k 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 ...
8
votes
4answers
2k 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 ...
7
votes
4answers
2k 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 ...
7
votes
2answers
491 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 ...
6
votes
4answers
257 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
3answers
414 views

E-Mail client in linux which allows to search encrypted mail

Is there an E-Mail client for linux which allows to search old gpg encrypted mails (i.e. find all mails which contain a particular keyword in the body, including the encrypted ones).
6
votes
4answers
2k 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 ...
6
votes
2answers
505 views

Roll-your-own GMail alternative

I'm quitting GMail but attempting to avoid the headaches that come with administering my own Internet-facing IMAP server. I have access to a commercial IMAP account, and I'd like to continue to use ...
6
votes
1answer
532 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
3answers
1k 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 ...
6
votes
1answer
331 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): ...
5
votes
5answers
2k 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 ...
5
votes
1answer
1k 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
2answers
560 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 ...
5
votes
4answers
4k 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
5k views

Understanding /etc/aliases and what it does

These are the contents of '/etc/aliases' file on my Debian (Wheezy) server, as it is: # /etc/aliases mailer-daemon: postmaster postmaster: root nobody: root hostmaster: root usenet: root news: root ...
5
votes
1answer
1k 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
125 views

Email client that understands both HTML and maildir

I'm using Mutt as my main email client, but I'm looking for another one for my work email (because of HTML email). I need one that can handle my existing Maildir email, to be able to switch between ...
5
votes
3answers
230 views

Sending email without including an origin IP address in headers

I often see email headers like these when I get email these days: Received: by FQDN (Postfix, from userid $USERID) So does that mean that people SSH into their VPS and send email from there or is ...
5
votes
2answers
679 views

local email storage syncing to imap - mutt-friendly

Summary My problem: I want to read email offline with my choice of client (mutt), but I want actions like moving emails, etc. to be kept in two-way snc with an imap server. My question: Is there a ...
4
votes
2answers
9k 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
4
votes
3answers
726 views

Possible to get SMS/text message notification when process ends/is killed?

There are scripts that will send an e-mail when a server process is finished. However, I do not want to check my email every so often just to see whether a job has finished. Therefore I'd like to get ...
4
votes
2answers
6k 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: ...
4
votes
2answers
136 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
3k views

How to delete a range of mails in Solaris using the 'mail' command?

I have some 1k+ mails in an inbox (old cronjob stdout), how to delete them in bulk? I'm on Solaris 8 and I have only mail available, no pine or mutt or similar "UI"-based client. Inline help and ...
4
votes
3answers
730 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
3answers
2k 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 ...
4
votes
2answers
879 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
2k views

Opening .eml files with mutt

How should one open .eml files in linux ? I'm not sure if mutt can handle it ? UPDATE I worked it out partially , by creating a new mailbox: mkdir -p a/{cur,tmp,new} And place the eml file in ...
4
votes
2answers
148 views

How and where is the at command configured?

When I install a new Linux system, one of my first tasks is to have crontab send all its email to a designated email address, not root. I want to do the same for the at command. That is I would like ...
4
votes
2answers
149 views

How to tell mutt not to wait for an attachment program to return?

I use this line for images in my mailcap: image/*; eog %s &; but mutt immediately deletes the temp file and eog can’t load it. When I remove the & mutt waits for eog to be closed until it ...
4
votes
2answers
353 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
1answer
416 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
58 views

dmesg email digest

I have a remote server which has some issues (Seem hardware related) which means that it logs KVM errors and then sometime later it becomes unresponsive and locked up. There is an often an early ...
4
votes
1answer
390 views

How to download all the e-mail messages from POP3 server to a single text file with mailx?

I would like to download all the e-mails in my old e-mail server. It uses POP3 and I'm interested in e-mails in "Inbox" and "Sent" folders. Once I have downloaded all the messages, I would like to ...
4
votes
1answer
523 views

Minimal MTA that delivers mail locally (for cron)?

On my laptop, I have set up a cron that performs a weekly job. If there is something to report, I would like to get an e-mail for it. Right now I am using KMail as MUA which is able to read mail from ...
4
votes
1answer
348 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
3k 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
1answer
66 views

When I schedule a command with 'at', can I change where the output is mailed to?

When I schedule a job/command with at to be executed in the future, the standard output and error of the command is "mailed" to the user that did the scheduling. So after my job runs, I get a message ...