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.

18
votes
2answers
27k views

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@example.com It seems that when you send ...
16
votes
1answer
4k 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 ...
11
votes
4answers
26k views

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....
7
votes
2answers
44k views

Sendmail Attachment

I was wondering if it's possible to include an attachment with sendmail. I am generating the following emailfile.eml files with the following layout From: Company Name <example@nowhere.com> To: ...
6
votes
2answers
38k views

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 ...
5
votes
3answers
2k views

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 ...
5
votes
1answer
408 views

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? ...
5
votes
3answers
69k views

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 ...
5
votes
3answers
7k views

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 ...
5
votes
3answers
2k 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 it'...
5
votes
1answer
2k views

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 myon@hakugyokuro.gk -s "Results for `hostname`" myon@...
5
votes
2answers
15k views

localhost [127.0.0.1] in email headers

I'm using sendmail to send a very simple email from a text file. Here is the text file: to:test@someaddress.com from:admin@hostname.tld subject:Testing test test test Which I send with: sendmail -...
5
votes
2answers
2k views

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. ...
5
votes
1answer
2k views

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/...
4
votes
2answers
14k views

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: person01@gmail.com;person02@gmail.com Subject:...
4
votes
1answer
10k views

mails being marked as spam

I configured my own mail server using sendmail for our application . Mail server is used to send automated mails when a user registers at our site . I was able to implement this successfully, but ...
4
votes
1answer
831 views

Native sendmail commands to operate the mail queue?

I'm on a CentOS 7 server that runs sendmail and unfortunately I'm not allowed to install new packages. Postfix tools are not installed; AFAIK the only tool available is mailq, that permits only to see ...
4
votes
1answer
3k 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 ...
4
votes
1answer
1k views

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 ...
4
votes
1answer
522 views

Why does sending email via mutt work to gmail but not to evernote?

I have freshly installed sendmail and mutt on Ubuntu 14, with no configuration. It works fine like this when sending a test email to a gmail account, e.g. mutt -s 'test 1' < /dev/null -- me@...
4
votes
1answer
2k views

How to access and manage a large mailbox (11 GB)

I've inherited a server which on the whole has been very well maintained. There are a few oddities which are no doubt the result of some executive decision taken by "someone who is not here now". ...
4
votes
1answer
222 views

Fedora Linux: I installed sendmail but now I don't get mail notifications when I log in

I installed the sendmail package on Fedora 23. So now I have /usr/sbin/sendmail that actually kind of works. Except now I don't get mail notifications in the bash shell. Why not? EDIT: I thought ...
4
votes
0answers
648 views

Configure sendmail to send only

I want to configure sendmail only to send emails – not to listen and receive. In /etc/mail/sendmail.conf I’ve got: DAEMON_MODE="None"; QUEUE_MODE="Daemon"; Iptables are disabled (temporarily; only ...
3
votes
3answers
363 views

What email features/functionality are baked into a typical Linux/GNU distro? [closed]

I am curious how system daemons on a local Linux host send email. Is there some type of email framework already built in? Do I need a MTA or a MUA? What part does "Sendmail" play and is it a ...
3
votes
2answers
4k views

What is the process `sendmail`?

When I type top commond, I see many sendmail, what are these sendmail? I never set mail in my service. SER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 16110 root 17 0 234m 35m ...
3
votes
2answers
14k views

Where are my emails stored on CentOS 5.6

I have a CentOS 5.6 VM installation and currently have a handful of emails that I would like to get access to. When I run mail as root, I get: [root@dev mail]# mail Mail version 8.1 6/6/93. Type ? ...
3
votes
2answers
1k views

sendmail not sending to the cloud (local mail works)

I'm using a perl module (Mail::Sendmail) which uses sendmail to send stuff. It hasn't been working, but hasn't been giving me any errors. So now I suspect sendmail. I tried: telnet 127.0.0.1 25 mail ...
3
votes
1answer
3k views

CentOS 6 stuck at starting service (sendmail) & cannot login

I've got a CentOS 6 server that's not starting up. If I press ESC during the splash screen I can see it's getting as far as 'Starting sendmail: _'. Leaving it for 15+ minutes and it's still there. ...
3
votes
1answer
21k views

How to configure sendmail.postfix to relay on exchange 2010?

I'm currently trying to figure out how to configure sendmail.postfix in Red Hat 6 to work with exchange 2010 relay. I've already configured our exchange server to allow our web server to relay. What ...
3
votes
1answer
6k views

PHP + Exim4 on Debian - mail does not get delivered

I have a fresh Debian installation with LAMP. There is a PHP script that sends email messages to arbitrary addresses using the mail function, but it does not work - the messages don't get delivered. ...
3
votes
1answer
6k views

Email Sent via root@domain.com despite modifying /etc/aliases

First, here are the entries I added/modified in /etc/postfix/main.cf file: mydomain = domain.com myorigin = $mydomain relayhost = email-smtp.us-east-1.amazonaws.com:25 smtp_sasl_auth_enable = yes ...
3
votes
1answer
1k views

Why does sendmail work differently in different shells?

The following code works when I directly run it in bash shell: SUBJECT="SUBJECT-"`date`; MAIL_FROM="abc@site.com"; MAIL_TO="abc@site.com"; MAIL_CC="abc@site.com"; MAIL_FILE="/path/of/html/body.html"; ...
3
votes
1answer
374 views

Unattended upgrades won’t use mailx when run by Systemd

I have setup unattended-upgrades on servers running Raspbian (Raspbian GNU/Linux 9.4 (stretch)). Version of Unattended-upgrades: 0.93.1+nmu1 Updates work, but I am having problems with the email ...
3
votes
1answer
654 views

Can I do a delay delivery in Thunderbird or Evolution

Now we have an option of "Delay Delivery" in Outlook. Can we do something like that in thunderbird/evolution or any other linux client ?
3
votes
1answer
507 views

How can I change the from address in *nix mail globally?

I know that you can change the from address in *nix mail by specifying command-line options. However, is there a way to set it globally, so that it is respected by forwarding? I tried modifying the $...
3
votes
1answer
708 views

Mail delivery problems

Once upon a time there was a server. Lets call it zzz.com, running Ubuntu LTS 10. Then, domain owner decided to create his corporate mail via Google Apps, and created account username@zzz.com. ...
3
votes
3answers
475 views

How to let sendmail preserve plus detail for .forward?

I have a normal sendmail installation. A user has a .forward like this: # cat ~elrond/.forward elrond@somewhere # sendmail -bv elrond+extra@localhost elrond@somewhere... deliverable: mailer esmtp, ...
3
votes
1answer
855 views

Sendmail/procmail/Exchange truncating mail

The level of enlightenment by a colleague to find a pattern in this has saved me from a new depth of madness. My hope is that the brain trust here can now tell me why... The Scene: We have several ...
3
votes
1answer
1k views

How to send non-local mail, with GMail(GApps) SMTP?

I have some (~3) Debian boxes, and I want to post system mail to my non-local mailbox. But I have a problem with configuring exim4. Also I don't like so much exim4's config. Too different, and also ...
3
votes
1answer
176 views

Why is procmail hanging?

I have a goofy sendmail aliases.local file set up to pass emails to procmail. This is a set up that was working on ancient Solaris systems. Now I am running it on a RHEL6 system: # cat /etc/redhat-...
3
votes
1answer
124 views

How to override email address used by at command

cron has MAILTO setting to explicitly configure the email address that will receive the report Does at have anything of the kind? Man page says it will send using /usr/sbin/sendmail but which ...
3
votes
2answers
2k views

block specific user to send mail

I am using sendmail in RHEL 5. I have three mail accounts for the users jack, bob and alice. I want to make sure that user bob can send mail to alice but jack can't send mail to alice. But user jack ...
3
votes
0answers
684 views

Interpreting sendmail maillog response

I have sendmail set up to only transfer mail sent to "mydomain.com" to each user's personal email though none of the users are actual users of the system. I get a lot of traffic attempts showing up in ...
3
votes
2answers
19k views

Mail command to send attachements

I tried the below command uuencode data.txt | mailx –s “Test Mail” “mrp@xyz.com” But I get the below error ksh: uuencode: not found. Null Message body; hope that' ok which clearly tell that ...
3
votes
0answers
895 views

Configuring sendmail as a relay to ISP

I need to setup sendmail daemon as a simple store-and-forward mechanism to forward mails to our ISP. I need to connect to the ISP SMTP server on port 465 using SSL/TLS and a username/password for ...
3
votes
2answers
4k views

sendmail not using mailertable

I'm having trouble getting my mailertable to work.... /etc/mail/sendmail.mc contains this line FEATURE(`mailertable', `hash -o /etc/mail/mailertable.db')dnl /etc/mail/mailertable contains this line ...
2
votes
2answers
33k views

sendmail not working

I have a website where mails are sent. Those mails from website (contact mail, booking mail) are being sent well. But when I go to shell with ssh and give sendmail myemail@mail.com it is not sending. ...
2
votes
3answers
10k views

Null message body; hope that's ok

I have the following command below as part of a cronjob. When I run the command via cron or at the command line, I get Null message body; hope that's ok. The contents of the email are empty but when ...
2
votes
1answer
14k views

Why does sendmail's status keep changing to “dead but subsys locked”?

Every day I get the output of sudo service --status-all emailed to me using crond. The server is a CentOS 6.5 web server which I use to host a few WordPress websites. Occasionally sendmail will change ...
2
votes
2answers
21k views

How to send the email which is sleeping in my queue list?

When i send email it sleep in my queue list. How can i send them out? (Fedora 15 distro). # mailq /var/spool/mqueue (2 requests) -----Q-ID----- --Size-- -----Q-Time----- ------------Sender/...