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

5
votes
5answers
8k views

Outgoing only SMTP server

I want to setup an outgoing only SMTP server on Debian, so my Web-applications will be able to send e-mails via it. I don't want to use another hosts because of security and customizability of my own ...
3
votes
2answers
316 views

Change reception in postfix queue

After running postqueue -p i sometimes finds misspelled email-adresses, is there a way to change the reception adress (envelop to adress) of the messages, so it can be delivered. exemple: postqueue -...
0
votes
3answers
2k views

Monitoring postfix mail throughput

I have a number of CentOS machines running postfix and sendmail. Is there some thing that I can use to monitor the current message throughput of a mail server from its logs? I'd particularly would ...
-5
votes
2answers
2k views

Why use Dovecot AND Postfix/Sendmail? [closed]

Forgive me if I'm missing something obvious here..... but why do most linux server distros come with both Dovecot AND Postfix (or sendmail)? As far as I'm aware all three of them are Mail Transfer ...
5
votes
1answer
217 views

Postfix “Trusted TLS connection established” but “Server certificate not verified”

I´m using a Postfix TLS Policy to enforce TLS for outgoing email. Unfortunately in some cases the certificate verification fails and I don´t know why. For instance, this is an excerpt of my TLS ...
4
votes
2answers
3k views

Email catch all (domain and subdomains) Postfix

I just want to catch all email sent to * @domain.com AND * @ * .domain.com to a unique email system@domain.Com @runlevel6 Any idea to implement regexp in virtual like cat /etc/postfix/virtual @...
3
votes
2answers
432 views

In Postfix, how do I measure how much traffic is used by each user or domain?

In Postfix, how do I measure how much traffic is used by each user or domain? I can see no "out of the box" means of doing this with vanilla postfix, however, I am sure this is a pretty common need. ...
3
votes
2answers
4k views

SMTP-AUTH required for local domains?

Here is the problem: From any IP address not belonging to your mail server: telnet me.myemailserver.com 25 helo me.someserver.com mail from: <yourusername@mydomain.com> rcpt to: <...
3
votes
1answer
3k views

Route mail in postfix to different relays based on subject

I am looking to configure postfix to route messages to different relays based on the contents of a subject line. The desired result would be if a user sent an outbound e-mail with a specific tag say "...
3
votes
3answers
5k views

How to set SPF record?

I have configured postfix to use mail.example.com I have many virtual domains, like: domain1.com domain2.com domain3.com My question is, how to set the SPF? Do I have to set SPF for each domain ...
3
votes
3answers
14k views

How to disable “sender non-delivery notification” in postfix?

I want postfix to stop sending non-delivery notifications to my local account, here is example from my log 17:47:08 A727B62C6F61: message-id=<20121124174708.A727B62C6F61@mail.***********> 17:...
2
votes
1answer
6k views

Howto enable SMPTS (465) postfix CentOS

I need help is enabling SMTPS. I use postfix , dovecot with MySQL(virtual domains). I do not know how to enable SMTPS(465). I already added tls related settings and key and certificate in the "/etc/...
2
votes
2answers
27k views

Postfix: lost connection with *somehost* while receiving the initial server greeting

I had Postfix installed on CentOS earlier (several months ago) and it was working fine. Due to the fact of the many brute-force attempts and considering that I didn't use it almost at all I shut ...
2
votes
3answers
5k views

Postfix: mails sent through sendmail binary are blocked because of wrong HELO

My server is using Centos 6.5 I updated from Plesk 11.5 to 12 last week and postfix to 2.8.17. Since then, all mails sent using the sendmail binary (notifications, mail forwards...) are being rejected ...
2
votes
2answers
7k views

Conditionally rewriting From and Reply-To headers in Postfix

I've got a web app running on Amazon AWS and it's using Amazon SES to send emails. One of the things I really want this system to do is to be able to forward emails to certain addresses from anyone ...
2
votes
3answers
2k views

Email postfix marked as spam by google

I searched about this question, found some few answers but no idea how to fix, the problem is that I realy dumb with all this! I configured the postfix and done everything how the install how to told....
1
vote
6answers
6k views

E-mail sent with postfix are marked as spam

I am using gmail as my email provider for a domain name that I control. I want to send email from my dedicated server that is being hosted by a real hosting company and I don't like the 500 message ...
1
vote
2answers
2k views

Forwarding only bounce messages to a different SMTP server

I have a Postfix SMTP server that sends transactional emails from a web service. These messages use VERP for the return path, so bounces go back to an address like this: bounce-7232-useremail=...
1
vote
2answers
4k views

Upgrading to Debian 7: Postfix Auth fails

I'm upgrading various Debian 6 servers to Debian 7. There are a few minor issues, but this one is a show stopper. On Debian, Postfix runs in a chrooted environment. That environment is setup ...
0
votes
1answer
839 views

Monitoring message delivery on Postfix (or Cyrus IMAP)

There's mail server based on Postfix. I need to monitor which messages are delivered to end-user? and which are not. In processing of each message I need to get some information from its attachment in ...
0
votes
1answer
5k views

Postfix: virtual_alias_maps delivering everything to one user despite new domain

I have a postfix installation handling mail for a couple of domains, for which all mail goes to one real local user (cmb), and I want to add a new domain (let's call it example.org) for a second user, ...
0
votes
1answer
2k views

How can we support all domains in postfix smtp server?

I have installed and configured postfix on our server. Postfix config file has relay_domain parameter which contains the list of domain names which postfix will support. Is there a way by which we ...
6
votes
1answer
1k views

Postfix + sasl method rimap strips domain name from user

I'm setting up a mail server with Postfix and Courier-IMAP. I'd like to do SMTP authentication with rimap, so that I don't have to maintain two user DB's. The problem I'm having, is that the username ...
5
votes
1answer
4k views

How to configure postfix to only send to whitelisted addresses?

I want to configure postfix to only send mail to addresses in a whitelist. I have tried to use smtpd_recipient_restrictions in main.cf like so: smtpd_recipient_restrictions = ...
4
votes
5answers
5k views

Redirect specific e-mail address sent to a user, to another user

I need to redirect e-mail within our MTA when the two following criteria are both true: When an e-mail is: Sent from: user@isp.com Addressesd to: user@ourcompany.com Result: redirect e-mail to ...
3
votes
2answers
687 views

can I add global alias in virtual_alias_maps but only for local domains?

I want to create a global alias for all my domains to catch all mail to addresses like postmaster@ I've added theses lines to aliases.pcre: /(MAILER-DAEMON|postmaster|abuse|webmaster)@(.*)$/ me@...
3
votes
3answers
12k views

POSTFIX Won't Start says: bind 0.0.0.0 port 25: Address already in use, what should i do?

I followed the tutorial here: https://help.ubuntu.com/community/PostfixCompleteVirtualMailSystemHowto#Create_a_vmail_user to set up Postfix on a new ubuntu installation but it won't start, whenever i ...
2
votes
2answers
1k views

Postfix Domain Whitelisting in Combination with Sender Authentication

I'd like to whitelist several domains in my Postfix configuration in such a way that all e-mails from those domains are accepted as long as they're properly authenticated using SPF and/or DKIM, should ...
2
votes
1answer
111 views

“Masquerade” mail sender on a multi-domain shared hosting [duplicate]

I've a single host with CentOS 6.3. I manage that host via SSH. The server itself is uname -n: servername.foo.com. On this host I've multiple, unrelated httpd vhosts. The problm is: when one vhost ...
2
votes
1answer
7k views

Postfix (SASL) / MySQL: Use MD5 Encryption?

Is it possible to use MD5 password encryption to encrypt passwords when using Postfix / SASL and MySQL? Currently, my setup is using the MySQL CRYPT() function, which for various reasons isn't ideal.
2
votes
2answers
1k views

Postfix sends email to spam (gmail, hotmail)

I recently installed a postfix + dovecot + dkim multi domain, multi user, multi alias mail server on my debian squeeze system. Everything works except for one big issue that basically makes the whole ...
2
votes
1answer
377 views

postfix discard or change Message-ID header based on another header line

I want to change the Message-ID header or better yet, discard it. I know everyone is going to ask "Why would you want to do that?" because I know it sounds weird to even write it. Well I am ...
2
votes
1answer
611 views

postfix: relay access denied. How to fix it?

I've been fiddling with main.cf file for a long time but still couldn't find why. I've set up an email server with this tutorial Email with Postfix, Dovecot and MariaDB on CentOS 7 This is the part ...
1
vote
1answer
103 views

postfix - how to prevent users from sending with another users name

Even though my postfix server cannot be used without authentification (open relay), sending mail in another users name after logging in is still possible like this: EHLO domain.org auth plain ...
1
vote
1answer
144 views

Postfix after-queue filtering for local destinations only

I need to run all mail addressed to local domains (as defined in vmail_domains) through a simple after-queue content filter which then re-injects the processed emails back into Postfix via sendmail. ...
1
vote
2answers
6k views

How do I remove these junk mail headers?

I'm using Postfix 2.3.3 and mail sent from my server always add useless headers which I'd like to remove. Currently I'm only using the PHP mail() function to send mail. Return-Path: Received: from ...
1
vote
4answers
897 views

Postfix virtualised myhostname

So I have several servers all set up to send and receive mails from multiple domains, this all works perfectly fine. However a few people have complained that within the mail headers you still see ...
1
vote
1answer
70 views

Postfix acting like an open relay for domain mailboxes

I have a mail server running on Debian 7.8 configured with postfix 2.9.6. My restrictions are these: smtpd_sender_restrictions = reject_sender_login_mismatch, reject_unknown_sender_domain, ...
1
vote
1answer
121 views

Disconnect modem when postfix queue empty

in /etc/ppp/ip-up.d/script I have the following that runs fetchmail when the ppp0 interface is up (connected) and when it finish the modem ends internet conection automatically. #!/bin/sh /usr/bin/...
1
vote
1answer
2k views

Conditionnal relay in postfix

I use postfix to send direct email. But, I use a relay to send email for specific senders. So I use "sender_dependent_relayhost_maps" : /etc/postfix/main.cf : relayhost = transport_maps = hash:/etc/...
1
vote
1answer
244 views

mail client Thunderbird does not read new mails from dovecot/postfix mail server

I run a server: Debian GNU/Linux 7.8 (wheezy) and used the default mail system (exim) for mails with regular users (no vmail). Mail system did not work properly for some users, so I removed exim and ...
1
vote
1answer
83 views

postfix configuration and Received from

Having some trouble here. My server has 3 IP addresses and this is my /etc/hosts: 127.0.0.1 localhost 46.38.235.226 brian.smares.de brian 46.38.238.199 stewie.smares.de stewie 46.38.238.137 mail....
0
votes
1answer
4k views

I can't send email from my server to gmail addresses

I'm using postfix, and have setup spf, dkim, and domainkeys. I can get my email to go to Yahoo, but not gmail. Here's the headers from an email send to Yahoo. Yahoo reports the email as domain key ...
0
votes
1answer
3k views

Temporary Lookup Failure - Postfix/Dovecot

Alrighty... So here's what's going on. I can sign in with Outlook to my Mail Server, but when I go to send an email, I get this error. Using SquirrelMail, I don't get any errors, sending works fine. ...
0
votes
1answer
2k views

Postfix on Ubuntu tried everything, won't send emails

I'm trying to get postfix set-up on Ubuntu 13.04 but no luck so far. I found a few answers here on ServerFault that didn't work. I re-installed a bunch of times, nothing. This is my first time dealing ...
0
votes
3answers
143 views

How to test and actually perform a transfer of an internet domain to a new server regarding mail?

My setup is a productive server (e.g. 1.1.1.1) hosting a domain, lets say example.com. Currently, postfix and courier (only IMAP) are doing the job of hosting mail. I am planning to transfer the ...
0
votes
1answer
519 views

Scrub header for internal servers in Postfix?

We have all internal Centos servers sending mail to 2 outgoing MX servers in our business. I want to scrub the headers on our 2 outgoing MX servers to remove the information from where they originated....
0
votes
3answers
6k views

Rewrite recipient of all (except one recipient) outgoing e-mail

I have a server that hosts a Java application that is allowed to send out emails. During testing, I want Postfix to send all outgoing email to test-javaapp@my-company.com, however email that sent to ...
0
votes
1answer
5k views

How to close an open relay in Postfix?

I've discovered my server has been an open relay. I asked about it and tried all the answers in My Postfix has gone wild. Am I hacked? but still its acting up. Every time I run #postsuper -d ALL I get ...
0
votes
1answer
347 views

How can I disable local mail delivery in Centos? [closed]

I want to disable local mail on my Centos VPS because the I have a web form (on a website which is hosted by the VPS) which is delivering mail to the local mailbox rather than looking at MX records to ...