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)

31
votes
5answers
40k 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?
20
votes
3answers
9k 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 ...
18
votes
4answers
3k 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 ...
18
votes
4answers
40k 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 ...
16
votes
7answers
16k 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. ...
15
votes
3answers
34k 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 ...
10
votes
4answers
15k 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
468 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
5k 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
784 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 ...
8
votes
1answer
96 views

mutt: automatically show new mesages

When I have mutt opened, I don't see new emails until I press a key, for example arrow down. Then new emails appear. Is there a way for mutt do recognize that new email has arrived, and display the ...
8
votes
2answers
516 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 ...
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
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?
7
votes
1answer
75 views

How can I configure mutt to display my replies within threads?

While mutt has set sort = threads to show threaded, "conversation" style messages, it doesn't display one's own replies in the threads. Instead, you have to change to the Sent folder to see your own ...
7
votes
4answers
315 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 ...
6
votes
4answers
269 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
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 ...
6
votes
3answers
464 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
568 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
8k 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 ...
6
votes
1answer
566 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
28 views

multiple clients accessing one email account over IMAP

I am using Postfix + Dovecot + IMAP + Maildir and I am accessing my server from two different machines (desktop and Laptop), i.e. two clients (Thunderbird). The are sometimes running simultaneously, ...
6
votes
2answers
949 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 ...
6
votes
3answers
2k 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
421 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
1answer
2k 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
3answers
1k views

Unable to use OfflineIMAP to sync Gmail

I'm trying to setup OfflineIMAP to sync my Gmail account to ~/Mail/Gmail. I'm using a pretty basic ~/.offlineimaprc from here. But OfflineIMAP doesn't connect to Gmail at all. This is the debug ...
5
votes
4answers
5k 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
2answers
682 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
3answers
774 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 ...
5
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 ...
5
votes
1answer
329 views

Are there any alternatives to mutt?

I really like the idea of Mutt, reading mail in the terminal. I'm not really pleased with some inconsistencies and the imap handling. I set about trying to find some alternatives to mutt, but I can't ...
5
votes
1answer
161 views

simple script for monitoring a mailserver

I would like to use a simple bash script (python would be second best) to monitor regularly (hourly) if my mailserver is online and operating. I know that there are dedicated solutions for this task ...
5
votes
1answer
502 views

How can I bcc with mailx?

I'm trying to send unix mail (heirloom-mailx) via bcc. $ mail -V 12.5 6/20/10 My MTA is exim, which sends via Gmail SMTP. I can execute the following: echo -e "body" | mail -s 'subject' -b ...
5
votes
1answer
3k views

Difference between mail and mailx? [duplicate]

Whats the difference between mail and mailx? I'm trying to troubleshoot a problem where I can send mail from server A with this echo $MESSAGE | mail -s "$SUBJECT" -r $FROM $RECIPIENTS command but ...
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
171 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
1answer
786 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
2answers
12k 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
1k 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
8k 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
137 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
4k 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
3k 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
1k 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
1answer
52 views

Using several independent instances of Thunderbird

As many people, I too have several email accounts. Until now, I have been using Thunderbird for my main account, and either used web interface for the other accounts, or used other email clients ...