General purpose email routing software that supports mail transport via TCP/IP using SMTP

learn more… | top users | synonyms

36
votes
7answers
130k views

Where to check log of sendmail?

I can't send out emails, need to look into the logs, but where is the log?
21
votes
11answers
33k views

Disable local delivery in Sendmail

I am using Sendmail on a Centos server to send email for PHP scripts, but the problem is that mail is delivered to a local mailbox on the machine rather than what is specified in the MX records for ...
19
votes
5answers
14k views

php mail() function painfully slow on local development machine

Background: If you have set up a local apache server for development purposes you may have run into the problem where sendmail takes a long time (at least one minute) to send emails. This is extremely ...
17
votes
8answers
76k views

How to send email with my CentOS server?

I just built a modest home server using CentOS 5.5. I want the server to be able to send emails to my Gmail account or other email accounts for various things like cron jobs. Also it would be nice to ...
16
votes
3answers
15k views

what is sensible-mda and do i need it?

I'm running Ubuntu Intrepid, and have been seeing the following my logs: Aug 23 16:01:03 wp1 sm-mta[13700]: n7NFJIad013566: Warning: program /usr/sbin/sensible-mda unsafe: No such file or directory ...
15
votes
6answers
41k views

how to fix “send-mail: Authorization failed 534 5.7.14 ”

I am trying to create e-mail alert on ssh root login so I had to install ssmtp and mail utility. Then I configured ssmtp.conf file as follows : # Config file for sSMTP sendmail # The person who gets ...
15
votes
3answers
29k views

Is Postfix the same thing as Sendmail?

I have postfix setup on my server so that I can send outgoing mail using the command-line: mail -s "Subject" address@example.com Is this using sendmail or postfix? Is "sendmail" just a software ...
14
votes
2answers
1k views

Gratuitous CRLF in Subject: line - why is it there, and is it legal?

I'm running into a problem with a NAGIOS system sending emails to a popular email-to-SMS service. The email-to-SMS service takes emails with text in the Subject: line, and sends them on to the mobile ...
13
votes
6answers
32k views

How do I permanently delete e-mail messages in the sendmail queue and keep them from coming back?

I have a pretty annoying problem here. I have been testing an application and have created some test e-mails to bogus e-mail addresses (not to mention that my server isn't really set up to send ...
12
votes
1answer
21k views

“My unqualified host name (foo.bar) unknown” Problem

When trying to start sendmail or send a mail using a wordpress plugin, this error shows up in the maillog: "My unqualified host name (foo.bar) unknown; sleeping for retry" After Googling the best ...
11
votes
3answers
3k views

Prevent mail being marked as spam

This is a canonical question about avoiding outgoing mail being classified as spam. Also related: Fighting Spam - What can I do as an: Email Administrator, Domain Owner, or User? What ...
10
votes
3answers
17k views

Change default from address from Postfix from www-data to something else

Setting up Postfix and Apache/PHP on an Ubuntu server. Mail's now going out ok with the proper domain name, but the local part display name is always "www-data" as I'm assuming Postfix uses the name ...
10
votes
1answer
5k views

Understanding service --status-all output

I am trying to understand the output of the service --status-all command on Ubuntu 13.10, since the man page doesn't explain it. For example: [ + ] rsyslog [ - ] sendmail [ ? ] sendsigs [ + ] ...
10
votes
2answers
14k views

What are the steps to make the php mail() function work on ubuntu-server?

I want to enable the simple php mail() function on an Ubuntu server. This will only be used for sending administration stuff and logs. This is all the mail functionality that I want on this machine. ...
10
votes
3answers
2k views

Removing apache@localhost from email headers?

My setup: I'm running a Magento website on an Amazon Linux server (which seems to basically be CentOS) with an Apache webserver. I also use Google Apps for managing mydomain.com's mail. I was able ...
9
votes
2answers
2k views

Send all outgoing mail to /dev/null

With sendmail, how would you send all outgoing mail to /dev/null or just prevent email from being queued up or sent at all? On a development nagios box I want prevent sending of mail so that ...
9
votes
2answers
119 views

How can I use wildcards for sendmail TLS_Rcpt?

sendmail lets one place restrictions on TLS conversations. I want to check that messages sent to example.com are sent to a server that has a *.messagelabs.com certificate. I want to protect against ...
8
votes
3answers
3k views

Linux- Is an MTA required?

My VPS image (Debian 6) comes pre-installed with sendmail as the MTA. I will use this server as a web server, and maybe other usages but not as a mail server. I want to remove as many unneeded ...
8
votes
2answers
5k views

Confused about alias_maps and virtual_alias_maps

I have already re-read the docs on this as well as other posts here and this is still very unclear to me. I have been testing various things to understand the difference between alias_maps and ...
8
votes
2answers
15k views

Minimum PostFix configuration for sending emails only?

My servers are currently on sendmail which is not very efficient. I'd like to migrate to PostFix. I'm using Google Mail for Domain for handling incoming email so I need to setup PostFix to send ...
8
votes
8answers
31k views

How to configure php.ini with remote SMTP?

How do I configure PHP to send mail using mail() via a remote SMTP server? I've tried to do this using php.ini but it seems that you can only do that under Windows32 and I want to do this on my Unix ...
8
votes
2answers
375 views

Dealing with SMTP invalid command attack

One of our semi-busy mail servers (sendmail) has had a lot of inbound connections over the past few days from hosts that are issuing garbage commands. In the past two days: incoming smtp ...
7
votes
4answers
9k views

Fastest way to allow sendmail relay through smarthost?

I only want sendmail to relay through my ISP's smtp server, nothing else. How do i set it up?
7
votes
3answers
16k views

How to fix “unable to qualify my own domain name (myhost) — using short name”? [closed]

and yes, I have 127.0.0.1 localhost myhost.mydomain.eu myhost.domain2.eu localhost.localdomain 127.0.1.1 myhost in hosts file. What is wrong? Sendmail started to put this error into log. ...
7
votes
3answers
24k views

Get log of mail sent with mail() from PHP (sendmail?)

After some server changes our PHP configuration got nuked, which caused a client's large mailing list to time out partially through about 4,000 addresses or more. We want to avoid sending a duplicate ...
7
votes
3answers
9k views

How to Specify outgoing HELO with sendmail?

How do you specify the FQDN (Host and Domain Name) that a mail server presents itself as in HELO/EHLO when sending outgoing email with sendmail?
7
votes
1answer
4k views

What is the difference between “dnl” and “dnl #” in a sendmail.mc file?

What is the difference between dnl and dnl # in a /etc/mail/sendmail.mc file? If I want to enable something what needs to be in front? Likewise, if I want to "comment out" something, what prefix do I ...
7
votes
4answers
3k views

Telling sendmail to auth?

I've been sitting here for a few hours now attempting to get sendmail to send the emails through an external SMTP server. I've gotten very close, but now I'm completely stuck. It seems that sendmail ...
7
votes
6answers
4k views

Minimal setup for sendmail to send outgoing email only?

I run a simple server that I administrate remotely, and I need it to be able to send an email to my personal email address every time an error occurs. With the default setup on Ubuntu, sendmail just ...
6
votes
3answers
23k views

How do I Forward root's email to an external email address?

I have a small server (Ubuntu 10.04) at my house and I would like to forward root's email to my gmail hosted domain to get security notifications and what not. I ripped everything out and started ...
6
votes
3answers
3k views

How can i send /var/mail/root again?

Through some missconfiguration i've a lot of emails in /var/mail/root and /var/mail/www-data How can i "loop" over these files and send each mail another time? Thanks in advance!
6
votes
2answers
828 views

Change sender address of queued mails

Is it possible to change the sender address of mails that are already queued? The relay-server we've used so far has silently changed its policy a few days ago and rejects now mails without a ...
6
votes
3answers
5k views

Send mail from Docker container with host's Postfix

I am running an Ubuntu 14.04 (Linux) server. I have installed and configured Postfix and OpenDKIM very nicely on the server; I can send emails to myself with commands such as echo hi | sendmail root, ...
6
votes
2answers
5k views

Sendmail messages rejected from Microsoft when using TLS

I'm going to preface this with a statement that I am no expert in sendmail. I rarely use it, but in this situation I have to for my client. Background: A client of mine has a mail server running ...
6
votes
1answer
27k views

How to configure sendmail to send email via GMail (smtp.gmail.com), using port 465 or 587?

I have configures sendmail to send email via my GMail (Google Mail) account, i.e. via smtp.gmail.com, by editing /etc/mail/sendmail.mc and regenerating sendmail.cf: -dnl ...
5
votes
2answers
212 views

Is there a graceful way to pick up new changes in sendmail?

Is there a graceful way to have Sendmail reload/process configuration changes from sendmail.mc without completely restarting services and potentially impacting smtp delivery that's in progress at that ...
5
votes
4answers
6k views

Do i need to open 25 port to send emails with the php mail function?

I have a Linux web app. Do I need to open port 25 to only send emails using the PHP mail function? If I have to open port 25, how can I disable receiving emails? Edit: I am asking because I ...
5
votes
1answer
328 views

Sendmail - Is it secure, and really essential?

I have a web application server running Ubuntu. The Application is built in Python/Django, but does not have any specific use cases to send email. We have log management software that allows us to ...
5
votes
2answers
9k views

sendmail rejecting some connections with handshake failure: SSL alert number 40

My sendmail server on CentOS 5 started to reject some connections with the following message logged: error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure:s3_pkt.c:1092:SSL alert ...
5
votes
7answers
2k views

Receive email alerts from Linux file server

GOAL: Get a text file on my file server into my gmail inbox. The file server is running Ubuntu Server 8.04 I currently SSH into it from time to time and to check logs, SMART stats for hard drives, ...
5
votes
3answers
7k views

Configuring php mail() per domain

I have about 6 sites on my dedicated server (running centos5), and all emails sent using php's mail function are sent by nobody@servername.hostname.com e.g. "Received: from nobody by ...
5
votes
2answers
10k views

postfix uses hostname instead of myhostname

I am trying to set up an outgoing mail server for sending emails which is to relay to our ISP. In /etc/postfix/main.cf I have myhostname to ourcompany.example.com and myorigin and mydomain to ...
5
votes
1answer
2k views

Linode w/ Google Apps - how to get mail from PHP working?

I have a CentOS Linode instance that I'm running as a LAMP stack. I'm also using Google Apps for email. I have my MX records pointing at google's servers and everything is working in terms of relaying ...
5
votes
1answer
192 views

Postfix stops picking up mails at night

Our postfix system stops sending mails at night. Every night at 2am it stops picking up mails. The server is a monitoring server, which sends a lot of mails per day. /bin/mail drops the mails in the ...
5
votes
1answer
676 views

Preventing RCPT TO: username enumeration in sendmail on ubuntu

I'm trying to configure sendmail to prevent it from allowing username enumeration through the RCPT TO: command. I've been googling endlessly and, from what I can see, the best way to achieve this is ...
5
votes
3answers
2k views

How to reject/detect emails claiming to be from my own domain?

We have following e-mail topology: Exchange server --------- Sendmail server ---------------Internet On sendmail server there is no any user mailbox and messages with sender address ...
5
votes
1answer
1k views

Sendmail Tuning For Batch Mail Jobs

I have a webservers that send out emails to a sendmail relay server as a batch job. The emails need to be accepted by the relay sendmail server as fast as possible, however, they do not need to go out ...
5
votes
4answers
2k views

can't get php mail() working on Ubuntu desktop version with sendmail and postfix

I'm running Ubuntu 9.10 LAMP and trying to do a simple email test with PHP and I'm not getting any emails sent. mail("myemail@gmail.com", "eric-linux test", "test") or die("can't send mail"); I ...
4
votes
6answers
7k views

How do I configure sendmail to send mail via MX record and not to localhost?

I am trying to get sendmail to transfer mails to the servers specified in the MX records so when the server sends an email to me@domain.com I want it to skip localhost and go straight to gmail. I've ...
4
votes
4answers
2k views

Does “\root” do anything in /etc/aliases?

I've found on a couple servers that have the following entry in /etc/aliases: root: \root,email@example.com You can send mail to /dev/null like this: root: /dev/null I can't find \root used in ...