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

learn more… | top users | synonyms

22
votes
5answers
77k views

Where to check log of sendmail?

I can't send out emails, need to look into the logs, but where is the log?
18
votes
11answers
27k 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 ...
17
votes
5answers
11k 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 ...
15
votes
8answers
62k 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 ...
14
votes
3answers
12k 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 ...
14
votes
2answers
878 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 ...
11
votes
6answers
25k 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 ...
10
votes
2answers
13k 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. ...
9
votes
3answers
17k 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 ...
9
votes
3answers
13k 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 ...
9
votes
1answer
16k 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 ...
8
votes
3answers
2k 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
1k 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 ...
8
votes
2answers
298 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
7answers
27k 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 ...
7
votes
2answers
11k 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 ...
7
votes
5answers
3k 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 ...
7
votes
4answers
2k 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 ...
6
votes
3answers
20k 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
4answers
6k 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?
6
votes
3answers
6k 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?
6
votes
2answers
14k 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 ...
6
votes
2answers
668 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
1answer
1k 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 [ + ] ...
6
votes
1answer
24k 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 ...
6
votes
1answer
128 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 ...
5
votes
3answers
10k 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. ...
5
votes
4answers
3k 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
2k views

Prevent mail being marked as spam

This is a canonical question about avoiding outgoing mail being classified as spam. I'm wondering how to prevent my emails from my site being marked as spam? I'm using sendmail. I'm trying to ...
5
votes
2answers
884 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 ...
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
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
119 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
2answers
540 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 ...
5
votes
1answer
878 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
4k 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
2answers
3k views

Sendmail doesn't work with iptables, even though smtp and dns are allowed

I have sendmail installed on Ubuntu 10.04 solely for the use of the php mail() function. This works fine unless iptables is running (I've been using sendmail myemailaddress@domain.com to test this). ...
4
votes
4answers
2k views

stop linux from emailing me cron errors?

Today i setup ssmtp to email me from sendmail. However what i didnt expect is that applications like cron would email me. One of my cron scripts before backing up the db tries to create ...
4
votes
3answers
2k 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!
4
votes
3answers
3k views

Where are sendmail emails stored?

I am trying to build an autoresponder script for sendmail (no, I don't want to use a pre-built one yet), but I can't seem to find the location of received emails on my server. I have to specify that ...
4
votes
1answer
240 views

Sendmail is not listening to any port

I am using VPS hosting with CentOS 6. I've installed Sendmail, but it's not listening to any port. I've checked, IPTables is disabled (or stopped I guess; service iptables status command returns ...
4
votes
3answers
2k views

Is sendmail caching DNS or getting it via different method than host/dig/nslookup?

We've got a linux server running sendmail that relays email through our primary mail server, but ever since a change of DNS servers last week, it's been timing out connecting to our mail server. Upon ...
4
votes
1answer
209 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 ...
4
votes
3answers
2k 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, ...
4
votes
2answers
3k views

Sendmail chdir(/clientmqueue) permission denied

My centos server can send mail using the 'mail' command but not from php. Maillog says: sendmail[18010]: NOQUEUE: SYSERR(nginx): can not chdir(/var/spool/clientmqueue/): Permission denied My ...
4
votes
2answers
3k views

Sendmail on Ubuntu trying to use Google Apps servers as a relay, by default?

I have a recently installed Ubuntu (natty) server, with a domain pointed to it. The mail for this domain is handled by Google Apps (via MX dns records pointing to Google's mail servers). Now, I've ...
4
votes
2answers
2k views

Configuring sendmail to archive a copy of any outgoing message

How do I configure sendmail to keep a copy of any message I send. An option would be to automatically send a copy back to my box.
4
votes
2answers
9k views

Sendmail to local domain ignoring MX records (part 2)

I have the exact problem, like in this post: http://serverfault.com/questions/25068/sendmail-to-local-domain-ignoring-mx-records I am also using email provider like GMail For Your Domain (which stores ...
4
votes
1answer
74 views

Where is the email bounce sent? To the @domain or to the IP that sent it?

When I send an email from noreply@mysite.com to user@yahoo.com and I use that VERP bounce format like bounce+user=yahoo.com@mysite.com Is this bounce back sent to the mail server in DNS records of ...