Questions tagged [sendmail]

Sendmail is the traditional MTA (message transfer agent), i.e. the traditional server program to send, transfer and deliver email. If your question is about sending mail in general, see the tag /email.

Sendmail is the traditional unix message transfer agent (MTA). It listens on remote connections for incoming emails on connections, handles local delivery (possibly with the help of an MDA, and sends locally-originating email.

Sendmail is no longer the de facto standard MTA; alternatives include , , , etc. These programs provide a command called sendmail (usually located in /usr/sbin) for compatibility.

Use this tag if your question is about Sendmail. If your question is about another MTA, use the tag for that MTA instead. If your question is about sending mail in general, see the tag .

336 questions
29
votes
2 answers

Can sendmail include an attachment?

Is it possible to include an attachment with sendmail? I am generating the following emailfile.eml files with the following layout From: Company Name To: [email protected] CC: [email protected] Subject: Generated…
TheLovelySausage
  • 4,183
  • 9
  • 30
  • 49
26
votes
2 answers

What is the format for piping a message into sendmail?

I am using the following command to create messages on the fly, and send them: echo "Subject:Hello \n\n I would like to buy a hamburger\n" | sendmail [email protected] It seems that when you send the information from a file, by doing something…
Kaizer Sozay
  • 739
  • 3
  • 13
  • 19
23
votes
1 answer

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 the Maildir directory at…
Lekensteyn
  • 20,173
  • 18
  • 71
  • 111
18
votes
5 answers

What is sendmail referring to here?

When I install sendmail from the debian repos, I get the following output: Disabling HOST statistics file(/var/lib/sendmail/host_status). Creating /etc/mail/sendmail.cf... Creating /etc/mail/submit.cf... Informational: confCR_FILE file empty:…
ixtmixilix
  • 13,040
  • 27
  • 82
  • 118
9
votes
1 answer

Can I read /var/mail with a GUI?

I can set up local-only mail accounts using sendmail or postfix, and messages will be stored in /var/mail/USERNAME and readable in a terminal window using mutt. I tried setting up a couple of MUA GUIs to read from this mailbox, but they all expect…
lofidevops
  • 2,967
  • 6
  • 39
  • 58
7
votes
1 answer

"send-mail: Applet not found" when using mail command on alpine linux

I am using alpine linux running in a docker container to run a webapp. The webapp is supposed to send emails using the mail command from the command line. To support this, I have installed mail as follows: apk add mailx When I try to send a…
user152468
  • 295
  • 3
  • 7
7
votes
2 answers

Using port 587 with sendmail

I have been using sendmail to send out mails using internally available mail server. But currently port 25 is blocked for security reasons. I would like to know if there is a way to specify port number in the sendmail utility. I am trying to make…
thinkster
  • 215
  • 1
  • 2
  • 8
6
votes
4 answers

sendmail error dsn=5.0.0, stat=Service unavailable

I have configured sendmail in an Ubuntu 12.04 64 bit machine. When I send email through a perl script it gives the below error: dsn=5.0.0, stat=Service unavailable and mail is not being sent. I checked on another machine where it is sending email…
suhas
  • 161
  • 1
  • 1
  • 4
6
votes
2 answers

How to initiate SMTP outbound traffic via secondary interface - Linux Sendmail

We have sendmail running in a RHEL box. We have two public IP address configured in the same box, one for SAP app and other for Sendmail. First interface will be used for SAP and second for Sendmail. I have binded the Sendmail daemon on secondary…
Pedge
  • 61
  • 2
6
votes
3 answers

How to send raw mail message on Linux?

If I have the full contents of a MIME message, what is the best utility on Linux to send the message? The MIME message would include the full headers and mail body, for example: Received: (qmail 32389 invoked by uid 0); 13 Jun 2017 09:24:51…
Chris
  • 1,137
  • 4
  • 14
  • 25
6
votes
3 answers

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 it'll accept MIME though. So what command can I use…
ixtmixilix
  • 13,040
  • 27
  • 82
  • 118
6
votes
1 answer

Turn off color in bash for logs

I am running Ansible on multiple machines and redirecting the output to a file, say log-$(date), which is mailed to me every day. The output file has multiple text colors, how to turn them off? Sendmail sends output which contains [0;32m, [0;33m,…
Sandjaie Ravi
  • 945
  • 1
  • 8
  • 12
6
votes
1 answer

systemd MAILTO-replacement failing

I'm trying to setup systemd to notify me via email if a unit fails, like Cron can be set up to do. I followed the guide on the Arch Linux wiki. So I set-up a sendmail shell script in /usr/local/bin/systemd-email: #!/bin/bash /usr/bin/sendmail -t…
emacsomancer
  • 499
  • 6
  • 18
6
votes
2 answers

Sendmail To Multiple Users Without CC

Hello everyone I was wondering if it's possible to use sendmail in a way that I can string multiple email addresses in the To: as such From: sendmail To: [email protected];[email protected] Subject: Did You Both Receive It? I hope you…
TheLovelySausage
  • 4,183
  • 9
  • 30
  • 49
5
votes
1 answer

How can I set an e-mail's headers using /usr/bin/mail?

I have a bunch of scripts on an IBM AIX server's crontab that call the mail command to send myself an e-mail, kinda like this: $ mail -r [email protected] -s "Results for `hostname`" [email protected] <
RAKK
  • 1,332
  • 2
  • 17
  • 35
1
2 3
22 23