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
2answers
3k 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 ...
5
votes
2answers
11k views

Postfix check outgoing mail for spam

How can I force postfix to check (and log/flag/etc) all outgoing mail for spam? Just want to make sure I'm doing my part on my servers. EDIT: Postfix config, as requested. main.cf # See ...
5
votes
3answers
3k views

Postfix on development server, allow mail to be sent to only one domain

We have postfix on our development server, and I'd like it to be able to only send mail to our domain, not to other domains, preventing accidentily mailing outside users from receiving mail from our ...
3
votes
2answers
10k views

How do I configure PostFix to allow other machines to send out email through it?

I have PostFix up and running on a CentOS box and would like to send mail from a Windows server on the same network out through the PostFix server. When I try to telnet from the Windows server into ...
12
votes
3answers
22k 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 ...
5
votes
5answers
7k 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
233 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 ...
3
votes
4answers
5k views

SMTP relay through GMail overrides “from:” address with “[me]@gmail.com”

I've been trying to figure out if this is a new "feature" or if there is an issue with my configuration. I'm using Ubuntu 10.04 Desktop with Postfix as MTA. My smtp (as opposed to smtpd) ...
2
votes
3answers
4k views

Can't send email from postfix to hotmail

I have problems sending emails from my server to hotmail. I used mxtoolbox.com and reported no problems on records or blacklists. Also, emails go successfully to gmail... This is my mail.log on ...
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 ...
10
votes
2answers
11k 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 ...
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
2answers
386 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. ...
2
votes
2answers
5k 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
4k 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 ...
2
votes
3answers
1k 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 ...
1
vote
2answers
3k 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 ...
1
vote
1answer
180 views

Postfix unknown command

I'm running two milters on my current postfix installation. I'm noticing that, from one particular client, they are sending an invalid command consisting of the first 3 letters of their domain name. ...
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: ...
1
vote
6answers
5k 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
5answers
5k views

Postfix Stagger/Rate Limit Outbound Mail

We have a server that sends our weekly newsletter to subscribers, To prevent people like Hotmail or Yahoo from blocking us due to sending too many simultaneous emails to them, Is there a way we can ...
0
votes
2answers
229 views

Accidently set chown “root” to all my server

I'm running 2 magento apps on my web server and I accidently set "chown -R www-data:www-data *" from the root of the server. Meaning, all the files were owned by the user root. This immediately ...
0
votes
1answer
736 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
2answers
201 views

Forcing MAIL FROM envelope to use: authed-user@$mydomain

I'm desperately trying to get Postfix to 'rewrite' the MAIL FROM envelope so that it's always in the form of: authenticated-user@$mydomain I've been playing with the smtpd_sender_login_maps and ...
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 ...
0
votes
1answer
4k 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, ...
6
votes
1answer
862 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
3k 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 = ...
3
votes
3answers
2k views

Postfix restrict recipients

how can I configure postfix to allow sending to a certain (external) domain only? I'm already using check_recipient_access. Content of my /etc/postfix/recipients_restrictions: domain.com OK My ...
3
votes
2answers
416 views

Is my Postfix mailserver an open relay?

Postfix newbie question: If I use the default, relay_transport = relay (by commenting out the error line), does that make me an open relay? Or does the inet_interfaces fix it? inet_interfaces = ...
2
votes
1answer
134 views

postfix parameter default_privs

I have set default_privs=myuser in main.cf, which is a perl script, executed in the context of this user. In the perl script I added some debug to print out the user: my $exec_username = ...
2
votes
3answers
1k views

postfix fails to send mail with “fatal: unknown service: smtp/tcp”

I have installed postfix, and when I tried to send a mail to gmail it told me that it has been sent, but when I checked my inbox in Gmail I didn't saw it. This is how the connection looked like: $ ...
2
votes
2answers
384 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)@(.*)$/ ...
2
votes
2answers
1k views

Postfix Connection Timed out

I used the tutorial below to setup postfix and dovecot on a Digital Ocean server. But I'm getting "Connection Timed out" when postfix/smtp tries to deliver an email to a remote host like gmail or ...
2
votes
1answer
6k 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.
1
vote
1answer
112 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
40 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 ...
1
vote
1answer
68 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
1answer
1k views

Why is OpenDKIM not signing and verifying my emails? (CentOS 6.5, Postfix & OpenDKIM)

I'm running: CentOS 6.5 Postfix 2.6.6 opendkim: OpenDKIM Filter v2.9.0 Compiled with OpenSSL 1.0.1e-fips 11 Feb 2013 SMFI_VERSION 0x1000001 libmilter version 1.0.1 Supported signing ...
1
vote
2answers
1k views

Why can't I send/receive emails from AWS Ubuntu using Postfix?

I'm trying to send/receive emails on my AWS Ubuntu box. To do so, I'm following the instructions posted by Amazon here. (I skipped the section entitled "To configure integration using a secure ...
1
vote
2answers
713 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 ...
1
vote
1answer
88 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 ...
1
vote
2answers
1k views

Is it possible to block a certain email adress from sending email anywhere other to its own domain?

I wonder if its possible to block all but few specific adresses to send outgoing emails anywhere other than its own domain. Also so they could still recive incomming messages. Blocking everyone isnt ...
1
vote
2answers
2k views

Postfix not working

A while ago I installed the postfix mail server on my ubuntu 10.04 VPS. At the time it was working good but now it's just stopped working. I was trying to enable SASL authentification and somewhere it ...
1
vote
2answers
1k views

Postfix load balancing

I have 4 VPS servers, my plan is to use one of these VPS servers as a load balancer which sends mail received by it from another server to other 3 VPS (smtp) clients who will relay mail to the outside ...
1
vote
1answer
117 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 ...
1
vote
1answer
6k views

Postfix to relay mails to other SMTP for particular domain

Have an SMTP server setup running in postfix, only for sending mails . Now the requirement is i want to relay mails for particular domain to end user through other SMTP , without disturbing default ...
1
vote
2answers
834 views

Can Postfix prevent duplicate in RCPT TO address?

My server running opends for LDAP and postfix dovecot procmail delivery My /etc/aliases contain the group of email address, for example : all : a@mydomain.com, b@mydomain.com, c@mydomain.com..... ...
1
vote
2answers
5k 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 ...
0
votes
1answer
510 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. ...