Free and open source mail transfer agent (MTA) that routes and delivers email. When asking about postfix problem, please include the relevant maillog lines and output of the following command: "postconf -n" (content of main.cf) and/or "postconf -M" (content of master.cf)

learn more… | top users | synonyms

39
votes
8answers
71k views

How do I check the postfix queue size?

What's the postfix equivalent to sendmail -bp?
38
votes
4answers
103k 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 ...
29
votes
4answers
20k 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 ...
29
votes
5answers
224k 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 ...
27
votes
4answers
14k 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 ...
26
votes
1answer
46k 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 ...
24
votes
2answers
8k 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 ...
24
votes
2answers
17k 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 ...
19
votes
5answers
604 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 ...
18
votes
6answers
27k 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 ...
17
votes
4answers
63k 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 ...
17
votes
4answers
8k 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 ...
15
votes
3answers
20k 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: ...
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
4answers
19k 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 ...
14
votes
6answers
1k 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. ...
13
votes
1answer
11k 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 ...
13
votes
1answer
12k 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 ...
12
votes
4answers
4k 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
2answers
12k 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 ...
12
votes
1answer
11k views

How can I see the contents of the mail whose 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 ...
12
votes
1answer
4k views

Postfix TLS over SMTP - RCPT TO prompts renegotiation then 554 5.5.1 Error: no valid recipients

I've setup ispconfig3 on my debian six server, and here is a little smtp over ssl: The server is postfix AUTH PLAIN (LOL!) 235 2.7.0 Authentication successful MAIL FROM: lol@lol.com 250 2.1.0 Ok ...
12
votes
7answers
19k 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 - ...
12
votes
2answers
6k 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 ...
12
votes
4answers
8k 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 ...
12
votes
4answers
12k 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 ...
11
votes
13answers
8k 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 ...
10
votes
5answers
51k views

Postfix: Recipient address rejected: User unknown in local recipient table

When I try to send an email on my postfix server to an address on the same domain (for example, if the server hostname is mail.example.com and I try to send an email to test@example.com), I get the ...
10
votes
2answers
452 views

crontab sends month-old emails

ubuntu 14.04 Mailserver: Postfix root receives dozen of emails from crontab. These mails contain PHP warnings. I've fixed the cause for these warnings. I've fixed every cronjobs to not send emails ...
10
votes
2answers
9k 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. ...
10
votes
4answers
16k 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
3answers
992 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 ...
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
2answers
14k 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(S) and IMAP(S). Using echo ...
10
votes
3answers
499 views

Email from our server tagged as junk by Hotmail Smartscreen unable to inform Hotmail that it is legitimate

Since more than 1 month ago we are having our email from one of our servers systematically tagged as junk by Hotmail Smartscreen filter. We have taken the following actions/measures without success: ...
9
votes
3answers
9k 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 ...
9
votes
5answers
14k 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 ...
9
votes
2answers
5k views

Virtual Domains with Postfix and SSL

I've got a Postfix mail server setup for hosting multiple virtual domains (say xxx.com and yyy.com). Users configure their outgoing mail server as mail.xxx.com and mail.yyy.com. All mail servers ...
9
votes
1answer
6k 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 ...
9
votes
6answers
17k 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. ...
9
votes
1answer
135 views

Postfix emails detected as spam with gmail [duplicate]

I know that there are a few posts about this and I have been reading them for a while now but still, I can't resolve my issue. I’m running ISPconfig with postfix and I can’t figure out why my ...
9
votes
1answer
17k views

Postfix: Recipient address rejected: User unknown in local recipient table, even though recipient domain is an external domain

In my company infrastructure, I have an internal mail server with postfix whose name is, say, srv-internal.central.mydomain.tld with internal IP 10.10.128.200. For exchanging mails with the Net, it ...
8
votes
2answers
11k views

Can postfix be set up to forward mail to multiple recipients

I have the following postfix virtual file: test@domain.com bob@me.com This correctly forwards all emails to test@domain.com to bob@me.com However I would like to forward these emails to ...
8
votes
3answers
9k views

Dovecot user lookup fails when using username@domain format

I have Dovecot v2.0.11 installed on a FreeBSD server and the user lookups for incoming email addresses are failing, but lookups for system users is successful. Dovecot is setup to use system users, ...
8
votes
4answers
20k 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 ...
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

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
5answers
18k views

POSTFIX: Limiting the rate at which a particular user can send email

We have a server CentOS server setup which hosts our websites and email server (using POSTFIX). We manage the system using Virtualmin and Webmin respectively. In general for every site that we setup ...
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
1answer
12k 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 ...