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)

23
votes
6answers
23k 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. ...
10
votes
3answers
6k 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 ...
39
votes
6answers
57k 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?
10
votes
1answer
19k 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 ...
21
votes
3answers
13k 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 ...
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 ...
7
votes
1answer
3k 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?
5
votes
2answers
989 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 ...
3
votes
2answers
3k 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 ...
0
votes
1answer
403 views

setting up a relay port for postfix smtp on CentOS 7

A CentOS 7 server has postfix, dovecot, and mailx installed. I am able to make an IMAP connection to the server from my remote Thunderbird client running on my local devbox. But I am not able to ...
0
votes
3answers
81 views

creating and sending a self-signed public key using GnuPG in CentOS 7

I know that I can create a GPG keypair from the CentOS 7 terminal by typing gpg --gen-key and following the resulting steps, but how can I make sure that the resulting public key is self-signed? And ...
24
votes
4answers
63k 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 ...
19
votes
5answers
7k 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 ...
21
votes
3answers
47k 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 ...
6
votes
3answers
4k 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 ...
6
votes
2answers
3k 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 ...
8
votes
2answers
2k 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 ...
2
votes
2answers
32k views

mail: send email with attachment from commandline [duplicate]

I know how to send an email from command line (script) echo "body" | mail -s "subject" my@email.com Is it possible to send attachments from commandline (script) as well? I am using heirloom-mailx ...
1
vote
2answers
4k views

Email using shell script

Is there a possibility to add multiple e-mails to a single variable so that when the shell script is run, it sends a mail to all the specified emails?
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 ...
2
votes
3answers
506 views

Trying to send HTML mail on mac OSX Mountain Lion

I'm trying to send email with an html file as the body (it's actually a cucumber results report if that matters) or an attachment (if sending it as the body does not work) via the command line I've ...
11
votes
4answers
22k 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
7k 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 ...
6
votes
1answer
657 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): ...
3
votes
1answer
84 views

How can I forward local *nix mail to an external account while keeping the local copy?

On my Raspbian server, I wish to have local *nix mail delivered locally, as well as to an external address. /home/pi/.forward contains pi,foo@bar.com. I've run sudo dpkg-reconfigure exim4-config with ...
3
votes
2answers
3k views

sending email to IP address via postfix

My friend and I have configured two Postfix mail servers on our laptops. We succeeded in sending mail to a real network (to some Gmail accounts) from our computers; that was the easy part. We now ...
2
votes
1answer
56 views

use mutt to send email through specific port on CentOS 7

What specific syntax do I use to get mutt to send an email through port 587 on a CentOS 7 server? For example, the sender is me@mydomain.com, the recipient is someone.else@someotherdomain.com, the ...
2
votes
1answer
50 views

assigning two ports to one service in firewalld

Is there a way to assign two ports to the same service in firewalld? For example, I would like for the SMTP service to listen on both port 25 and port 465. My first instinct is to change ...
2
votes
0answers
964 views

mailx attachment behaviour between RHL 5 and RHL 6

We have a line of code that does this in ksh, to send a file as an attachment in email: uuencode <filename> <filename.txt> | mailx someone@somewhere.com In RHL 5.2 mailx sends ...
2
votes
1answer
716 views

SSH Login Alert Using pam_exec

Hi I have been trying to follow the information about pam_exec from here: Ssh login hook? When a user log's in they get: /etc/pam.d/email-alert.sh failed: exit code 8 My sshd file has this at the ...
2
votes
1answer
200 views

Solaris cron ignoring mail aliases?

As a Solaris user, I want cron jobs generated emails for the localuser@server to be forwarded to my myuser@sample.com email account, so that I read only one inbox. To resolve this I have forwarded ...
2
votes
3answers
9k views

How can I find my local mail spool?

I am a graduate student and a relative Linux novice. This question is a sort of spin-off of my earlier question. My institution has a Ubuntu Linux cluster. I am just a user; I do not have sysadmin ...
2
votes
1answer
828 views

How do i fix the to address when forwarding with mail/exim?

I am using debian squeeze (i believe, the box doesnt really say) i config exim4 to use gmail and put root: someuser in /etc/aliases then put my email address (name+box@gmail.com) in .forward I ...
2
votes
2answers
636 views

How to fetch and process mail in order to execute commands?

I administer a home server, and sometimes when I'm out I need to execute some simple commands on the server. 3G + SSH is not an option because it's too expensive from my phone (here in Argentina). It ...
2
votes
2answers
1k views

How to send mail from a remote SMTP host?

I have Postfix suite installed locally on Ubuntu 10.10. I can send/receive mail to my local address, e.g. user@local.com. I'm given credentials to a remote mail server mailbox, e.g. ...
1
vote
0answers
19 views

how to redirect all email to a single external address?

I have a headless server (rpi1.example.com) with two active accounts: pi and root. I would like all the emails sent to these accounts to be redirected to an external address: real@somewhere.net. ...
1
vote
0answers
131 views

How to disable SMTP auth plain for Citadel 8.20 on Slackware 14.0?

How do I turn off SMTP AUTH PLAIN for Citadel 8.20 on Slackware 14.0? If I set up postfix to handle SMTP would this allow me to not have SMTP auth plain enabled
1
vote
2answers
183 views

How would I automate sending highly similar emails with one word changed?

E.g. if I want to send a bunch of emails along the lines of "What does it feel like to X?" to ask@qr.ae (Quora allows and even somewhat encourages me to ask highly similar questions there). And then ...
0
votes
1answer
87 views

Checking if a mail has arrived, if not then alert

I am using fetchmail in combination with procmail for mail filtering on CentOS where my mail contains various log messages. They serve me so I could search through my mail(logs) for error strings. So ...
0
votes
2answers
137 views

Send emails with a custom From: field

I'm really not into mail configuration, but somehow I managed to configure exim4 and it does send e-mails. I spent so many hours on it though I even can't count. (And I don't know why it is so ...
0
votes
3answers
104 views

Get contact information of system administrator from the terminal

Do any of the common Unix/Linux platforms provide a way to query the system administrator contact information from the command line. Obviously a system admin might not include this information when ...
0
votes
1answer
634 views

Command line e-mailing [duplicate]

Possible Duplicate: How can I use the “mail” command? I have mutt configured for CLI e-mailing. All's golden with the "this one just sucks less" client but... I am now on a machine on ...
-1
votes
3answers
405 views

unable to view postfix email from centos 7 command line, why not?

I have postfix installed on a development box and I used the parameters from this other posting to configure postfix to work on localhost only. But the other posting does not explain how to send ...
-3
votes
1answer
267 views

Best Linux for a small Web server [closed]

I'm currently planning my business servers and I would like to know what's the best Linux distro for these needs: Nginx + MySQL + PHP 5.4 Zimbra Collaboration - Open Source Node.js w/ Forever I ...