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.

learn more… | top users | synonyms

5
votes
1answer
779 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
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
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 ...
3
votes
2answers
563 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
2answers
2k 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 ...
3
votes
2answers
4k 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 ...
3
votes
1answer
263 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`" ...
3
votes
1answer
2k 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
531 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
53 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
198 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
45 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". ...
3
votes
2answers
587 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. ...
3
votes
1answer
340 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
2answers
1k 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
354 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 ...
2
votes
3answers
226 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 ...
2
votes
2answers
162 views

Where do uncaught local emails go?

Suppose I run - mail goldfish There is no such account on the system and no such aliases defined, where would the mail go? How do I see a list of such mails?
2
votes
2answers
825 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 ...
2
votes
1answer
14 views

where does Cron look for the default mail binary?

I have setup Cron Jobs to run inside a Chroot Environment, depending on the User/Group; I have noticed that these cron jobs, running inside the chroot environment, fail to send any mail. Log files ...
2
votes
1answer
212 views

Sendmail can't find local users (with uppercase letters)

Sendmail works through sending to a smarthost, but can't find local users. # sendmail -bv LocalUser@myhost.net LocalUser@myhost.net... User unknown # grep LocalUser /var/log/maillog Sep 8 03:48:30 ...
2
votes
1answer
116 views

/usr/sbin/sendmail: Permission denied

I am trying to setup the mail on my fedora 20. Every time I try to fire a test mail it tells me the permission is denied on /usr/sbin/sendmail. I checked the permissions and this is the output: ...
2
votes
1answer
1k views

sendmail through virtual machine

I am successfully performing some very basic SMTP sending in my machine with a basic Python script: .... things ... try: smtpObj = smtplib.SMTP('localhost') smtpObj.sendmail(sender, recievers, ...
2
votes
2answers
117 views

quick filter of IP that's causing sendmail DOS under FreeBSD

I've got what appears to be a malicious/spam host that is overloading my Sendmail server causing it to refuse connections to other hosts. I'm overloaded by connections from one particular IP address. ...
2
votes
1answer
731 views

How to prevent /var/log/mail.log from inflating?

I am using Ubuntu 11.10 (oneiric). /var/log/mail keeps inflating on my server: Aug 5 10:48:25 domU-12-31-39-0B-C4-54 sm-msp-queue[13360]: q71He1xw027248: to=postmaster, delay=3+17:03:10, ...
2
votes
2answers
598 views

Is there a way to completely disable outbound opportunistic TLS support in SendMail?

CentOS 5.x SendMail 8.14.4 An overzealous network security feature is causing TLS negotiations to fail when my Sendmail server tries to talk to external hosts. This is causing sendmail to constantly ...
2
votes
3answers
51 views

How to block incoming and allow outgoing mails for a no-reply user on Sendmail?

I am trying to block inbound emails for no-reply user and allow it to send emails at the same time. I tried editing the configuration in /etc/mail/virtusertable with: no-reply@example.com ...
2
votes
1answer
2k 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 ...
2
votes
1answer
320 views

How are email headers generated?

When you send an email a header is part of the message. For example, when you check your mail you can view the raw source and see the headers, which has information about the sender of email in it, ...
2
votes
1answer
622 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 ...
2
votes
1answer
332 views

How to generate a report summary of messages that triggered a specific DSN code

I use Sendmail on CENTOS 5.x, I hope this is a simple question. =) I need to generate a report summary of messages that triggered a specific DSN code. For example: Jan 11 07:43:34 server-example ...
2
votes
1answer
45 views

I can't find executable file for sendmail?

I did a source install of Sendmail 8.14.4, and BerkeleyDB.4.1 in ubuntu14.04lts Amazon EC2. The installation was successfully compiled, as far as I know. With the installation of the source, I made ...
2
votes
2answers
197 views

Rebuilding sendmail on FreeBSD application server after adding new activedirectory domain controller to network

In the process of adding a new ActiveDirectory domain controller to our network, we decided to rename the domain from "domain.local" to "domain.priv." I scoured all parts of our application server for ...
2
votes
1answer
47 views

Sendmail not masquerading email “Received:” headers

I followed the instructions from NixCraft site and try to masquerade my emails with the following configuration: MASQUERADE_AS(example.com)dnl FEATURE(masquerade_envelope)dnl ...
2
votes
0answers
95 views

Need help interpreting sendmail maillog response

I'm new using sendmail. 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 ...
2
votes
2answers
591 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 ...
2
votes
0answers
200 views

How to configure Sendmail in a jail to get correct FQDN?

I am building a mail server using FreeBSD 9.1-RELEASE with a jail. On the direct OS, all what I have to do was only adding my domain name to /etc/mail/local-host-names file. Anyway I wanted to run ...
2
votes
1answer
805 views

Postfix: force local users (PHP) to use the SMTPD for outside recipients

My server has been hacked and was sending lots of spam over the Internet. The first thing I did is shutdown postfix, close the outgoing port 25 and take the time to clean the website, the postfix ...
2
votes
0answers
315 views

Sendmail configuration with user mapping on Solaris

I have the following: host1.intra.net which has sendmail and users: user1, user2 & user3. It is running SunOS 5.10. host2.intra.net which has SMTP server. No authentication, no encryption. Email ...
2
votes
1answer
271 views

Apache mail sending flowchart / workflow?

I am currently trying to get my head into learning how Linux systems send mail, starting from Apache, to Sendmail and finally out the door. Specifically I'm using CentOS 5 which is using Sendmail, ...
1
vote
1answer
235 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 ...
1
vote
2answers
4k 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----- ...
1
vote
1answer
497 views

Why did CentOS 6.4 set up sendmail-related stuff up this way?

After my CentOS 6.4 install, sendmail-related components were set up as follows: mail:x:12:mail,postfix in /etc/group drwx------ 2 root mail 4096 Sep 6 14:06 /var/spool/mqueue And I was getting ...
1
vote
1answer
2k views

How to make sendmail write to new maillog

I want to rotate my maillog, but I want to make sure the newly rotated log contains the last 2M lines from the previous log: # write the last 2M lines to a new log tail -n 2000000 ...
1
vote
1answer
37 views

How to turn off STARTTLS for internal relaying of emails?

I read with interest from sendmail guide that it is possible to disable TLS. I tried doing so for internal mails by adding the following lines in /etc/mail/access: Try_TLS:my.server NO ...
1
vote
1answer
54 views

Installing courier-mta causes sendmail to be installed instead

My Debian workstation will not install courier-mta. The command aptitude install courier-mta appears to complete without error, but actually installs sendmail instead. What I did I'll start without ...
1
vote
1answer
61 views

How do I tell sendmail to say it's localhost instead of using its FQDN to combat spam?

When I started using sendmail to receive mail for my domain the server's FQDN wasn't set up right so it would appear to be localhost when other MTA connected to it. This seems to work fine. i.e. ...
1
vote
1answer
505 views

send email from my local domain example.com to external mail server using Sendmail

I'm using Sendmail as an MTA. I setup a local domain example.org, everything is running well, so now I want to use this local mail server to send email to my Gmail account or any external server. Just ...
1
vote
3answers
80 views

verify: command not found exception when trying to get value from user

Code Explanation: The below code is a simple script written by me to send a Installation status alert mail. It will be sent after completion of a linux software installation. In this code, If the user ...
1
vote
1answer
2k views

Nagios uses sendmail, new mail server, need to change SMTP server

I'm working with a CentOS server that has Nagios running and sending notification emails. The emails are still going to the old email system which was kept up to ensure all emails were being routed to ...