Free and open source mail transfer agent (MTA) that routes and delivers email

learn more… | top users | synonyms

27
votes
7answers
48k views

How do I check the postfix queue size?

What's the postfix equivalent to sendmail -bp?
27
votes
4answers
56k views

Postfix - how to retry delivery of mail in queue?

I have a backup mail server in case of a failure on the main one. In that case of failure, mails come on the backup server and stay there until the main one is back. If I wait some times, the ...
22
votes
4answers
10k views

DKIM sign outgoing mail from any domain (with Postfix and Ubuntu)

I got DKIM setup on my mail server (postfix and ubuntu) so it signs outgoing emails. I used these instructions: https://help.ubuntu.com/community/Postfix/DKIM However, I need it to sign emails from ...
21
votes
4answers
13k views

Why Does hotmail still reject my emails?

I have a very strange problem with my emails being marked as spam by hotmail. I just have configured Postfix + Dovecot on my server and all works perfectly. I can Send/Receive emails. I only have ...
21
votes
5answers
163k views

How to correct Postfix' 'Relay Access Denied'?

This morning, in order to correct a problem with a name mismatch in the security certificate, I followed the recommended steps from How to fix mail server SSL?, but now, when attempting to send an ...
19
votes
2answers
12k views

Understanding a Postfix log file entry

We have a Postfix hub and I'm trying to better understand the information in the mail.log file. I use tools like qshape, pflogsumm.pl and amavis-logwatch to summarize the log files, but I have still ...
17
votes
5answers
429 views

Is it good practice or too draconian to reject mails from mailservers with no RDNS

I've recently dropped SpamAssassin and am now basing spam rejection on DNSRBL's, grey-listing and other basic tests and I'm wondering whether I should also block hosts that don't have a valid RDNS ...
16
votes
6answers
19k views

postfix - how do you redirect all emails to one user, eg *@example.com → user@example.com

I'm using postfix for my email. I know I can use /etc/aliases and newaliases command to redirect certain email, eg I can redirect root@example.com to user@example.com by putting root: user in my ...
15
votes
1answer
24k views

What ports to open for mail server?

I have just finished setting up a Postfix mail server on a linux (ubuntu) platform. I have it sending and receiving email and it is not an open relay. It also supports secure smtp and imap. Now this ...
14
votes
6answers
944 views

How do you monitor a monitoring server?

So we run Groundworks (with Nagios) on CentOS to monitor our various servers and processes. I have it setup to automatically send emails and SMS texts when things reach a WARNING or CRITICAL state. ...
14
votes
4answers
44k views

Fixing My MTA's Poor Reputation

I have a web site that needs to send email to customers to deliver files that they have purchased. Reliable email delivery is vital to this business. Unfortunately, most of the emails sent by my ...
13
votes
2answers
4k views

Automate the installation of postfix on Ubuntu

My system configuration script does an "apt-get install -y postfix". Unfortunately the script is halted when the postfix installer displays a configuration screen. Is there a method to force postfix ...
12
votes
4answers
907 views

Is there any way to see if the mail sent by my server was received by the recipient server?

I've sent an important email that the recipient claims it wasn't received by them. They say that they asked their IT team to see if the email was received in their server. According to them the email ...
12
votes
1answer
6k views

How read mail from /var/spool/postfix/deferred?

Is there a way to read deffered mail from /var/spool/postfix/deferred. I tried to copy file to my mail directory and see it from webmail but it dosnt work. When im using less or cat it seems like ...
12
votes
7answers
15k views

Do you use postfix or qmail and why [closed]

I am setting up a server and I have the choice of installing qmail or postfix. Can someone help me make the right choice. Thing I like to see covered are: - Performance - Ease of setup - ...
11
votes
4answers
11k views

How to make Postfix use another IP address?

I'm using the Postfix mail server and I have 6 IPs available. I'd like to use another IP for the Postfix mail server for sending mail than the web server uses. How can I do this? My postfix version ...
11
votes
3answers
12k views

How to configure postfix to pipe all incoming email to a script?

Using postfix, I'd like all incoming mail, to any address (including those that don't map to local users) to be piped to a script. I've tried configuring mailbox_command in /etc/postfix/main.cf: ...
10
votes
2answers
8k views

How to redirect all postfix emails to one external email address?

To create a test email server, I have a similar requirement as: http://serverfault.com/questions/94640/how-to-redirect-all-outgoing-email-from-postfix-to-a-single-address-for-testing But I need to ...
10
votes
4answers
14k views

simple postfix configuration - forward all incoming email to single address

I've a Ubuntu 9.04 server installation which is hosting a small number of websites (currently two, and will remain in single figures). The email requirements for the server are very limited - to ...
10
votes
1answer
7k views

How can I configure Postfix to retain copies of all email sent through it?

My company currently uses Google Apps for email. I can configure Google Apps to forward all outgoing email through a relay server. I can also point my MX records at this server and have it forward ...
10
votes
3answers
10k views

Postfix aliases and duplicate e-mails, how to fix?

I have aliases set up in postfix, such as the following: all@mydomain.com: foo@mydomain.com, bar@mydomain.com ... When an email is sent to all@mydomain.com, and any of the recipients in that ...
9
votes
3answers
801 views

Postfix sending and receiving the same e-mail every 5 minutes for 4+ months

Back in June I sent myself the EICAR test signature to make sure my postfix/amavis/spamassassin etc setup was working properly. I didn't notice at the time, but this somehow created a tear in the ...
9
votes
6answers
14k views

Postfix throttling for outgoing messages

I need Postfix to send outgoing messages (from local PHP) with a certain rate. Say, one message in 120 seconds. Any messages exceeding this rate should be queued (delayed) and delivered later. ...
8
votes
2answers
2k views

postfix takes 60-90ms to queue email — normal?

We're seeing some (maybe?) strange delays when submitting individual emails to our local Postfix server. To help diagnose the issue, I wrote a little test program which sends 5 emails: get smtp 1ms ...
8
votes
2answers
5k views

How can I query postfix to test is an address is in the virtual address file?

Is there something I can run from the command line that will let me query postfix (running locally)? if an address is in the virtual address file and, where the mail for that address is routed to. ...
8
votes
2answers
13k 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 ...
8
votes
3answers
11k 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 ...
8
votes
13answers
6k views

Postfix performance

Running postfix on ubuntu, sending alot of mail ( ~ 1 million messages ) per day. loads are extremly high but not much in terms of cpu and memory load. Anyone in a similiar situation and know how to ...
8
votes
1answer
4k views

How can I see the contents of the mail who's ID I get from mailq command?

I used mailq command and I got a line like for example: A705238B4C 603953 Wed May 23 11:09:58 apache@myserver.com So, now I'm wondering is there a way where I can "read" an actual content of the ...
8
votes
1answer
4k views

How can I configure Postfix to ignore relayhost for some domains?

Is there a way in Postfix to ignore the relayhost? I have something like relayhost = [smtp.domain.net]:587 Now for a certain domain I don't want to send it out to that relay but want it to just ...
8
votes
2answers
7k views

Postfix “warning: cannot get RSA private key from file”

I just followed this tutorial to set up a postfix mailserver with dovecot and mysql as backend for virtual users. Now I got the most parts working, I can connect to pop3 pop3s imap and imaps. Using ...
8
votes
4answers
5k views

SRS / Sender Rewriting when forwarding mail through postfix

Is there any way to perform SRS, or something similar using Postfix? When I get a mail from user@example.org, I forward it (via a catchall) to something@gmail.com, but GMail is checking SPF, and ...
7
votes
3answers
5k views

How to redirect all outgoing email from postfix to a single address for testing

I am setting up a testing server for a web based application that sends some email notifications. Sometimes testing is performed with real customer data, and for that reason I need to guarantee that ...
7
votes
4answers
13k views

How to build a high availability Postfix system?

I'm needing to set up a remote mirror for a postfix server (where the content of both mail servers should be the same at any time). The idea is that if the main server comes down at some point the ...
7
votes
1answer
23k views

Configure Postfix to send/relay emails Gmail (smtp.gmail.com) via port 587

Using Centos 5.4, with Postfix. I can do a mail foo@gmail.com subject: blah test . Cc: and the msg gets sent to gmail, but it resides in the spam folder, which is to be expected. My goal is to ...
7
votes
4answers
2k views

Maildir vs Mbox - What are the practical differences

Although I understand the basics of the two storage formats (1 file per email under Maildir vs. 1 single file per mailbox under mbox), I am wondering what the practical implications are here - Is ...
7
votes
3answers
4k views

SMTP message rate control on Ubuntu 8.04, preferably with postfix

Maybe I am chasing a bug but I am trying to set up a smtp proxy of sorts. I have a postfix server which receives all the email for a collection of servers/clients. It them uses a smarthost ...
7
votes
1answer
5k views

Why is Postfix trying to connect to other machines SMTP port 25?

Jul 5 11:09:25 relay postfix/smtp[3084]: connect to ab.xyz.com[10.41.0.101]:25: Connection refused Jul 5 11:09:25 relay postfix/smtp[3087]: connect to ab.xyz.com[10.41.0.247]:25: Connection ...
7
votes
2answers
168 views

Can't receive mails from Gmail

A few days ago Gmail suddenly decided to stop sending mails to my mailserver. I am using Postfix and Dovecot with an paid SSL Certificate running on Debian 7 with everything updated. My mail.log ...
7
votes
4answers
7k views

Forcing the from address when postfix relays over smtp

I'm trying to get email reports from our AWS EC2 instances. We're using Exchange Online (part of Microsoft Online Services). I've setup a user account specifically for SMTP relaying, and I've setup ...
7
votes
1answer
493 views

Let Postfix handle spam in two ways

I've got postfix setup so that mail coming in from smtpd is automatically filtered through spamassassin (which reinjects it into the mailqueue with added headers) Now I want to do 2 things with ...
7
votes
1answer
1k views

I need advices: small memory footprint linux mail server with spam filtering

I have a VPS which is originally destined to be a webserver but some minimal mail capabilities are needed to be deployed as well, including sending and receiving as standalone server. The current ...
6
votes
4answers
888 views

How can I block outside mail FROM postmaster@mydomain.com?

A security firm has been testing my mail server and claims my Postfix daemon is an open relay. The evidence is as follows (valid public IP for mail.mydomain.com has been changed to 10.1.1.1 for ...
6
votes
4answers
1k views

Why does my mail get marked as spam?

I Have the server "afspraakmanager.be". It matches everything not to be a spam server.(it isn't by the way): it has reverse dns, spf,dkim,... . But hotmail marks it as spam. I think the problem is ...
6
votes
3answers
3k views

My Postfix has gone wild. Am I hacked?

Today, I found my server couldn't work because it was filled. I checked the logs and they had grown enormously, I deleted them so as things could work. now with current logs I'm seeing a lot of ...
6
votes
6answers
2k views

Spam prevention tips for Postfix

Without using SpamAssasin, or similar, what are your best tips for preventing spam. Please try and provide config examples :D
6
votes
2answers
996 views

What settings should my email server be mindful of to avoid bounce back from major email providers?

So I think my postfix+dovecot+roundcube+postfixadmin+sasl+spamassassin+amavisd-new+postgrey setup is working correctly. I can send out emails to certain domain names. Receiving definitely works; ...
6
votes
1answer
2k views

Postfix: Custom Reject Message for Certain Email Adresses

I would like to reject mails to a certain address with a custom message. Mails to other non existing addresses should be unchanged. How can I do that? I'm using Postfix 2.7.0 on Ubuntu 10.4. ...
6
votes
1answer
9k views

Proxy mail to different smtp server with Postfix

How can I forward (or proxy) mail to different smtp servers depending on the To address? I've got one machine with an SMTP (postfix) server listening on port 25. I want to use Lamson ...
6
votes
2answers
12k views

How to collect bounces in postfix

This is related to this question: http://serverfault.com/questions/20550/ways-to-get-a-bounceback-report-for-my-newsletter-application Let's say I'm generating email addresses like this when I send ...