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

4
votes
3answers
2k views

Postfix 'load balance' sending IPs

I got a server with 8 IP addresses to use as a mail server (With PostFix). I want PostFix to rotate the IP and hostname for each message. I found the config parameter smtp_bind_address = 1.2.3.4 ...
10
votes
2answers
9k 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 ...
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 ...
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 ...
6
votes
5answers
5k views

Is there any alternative to SpamAssassin? [closed]

I'm looking for alternative to spamassassin. Anyone tried rspamd from Rambler.ru (https://bitbucket.org/vstakhov/rspamd/wiki/Home)?
5
votes
3answers
9k views

How do I temporarily suspend mail delivery to a specific domain (non-local) with Postfix?

Using Postfix and custom transports I can manage delivery speeds depending on the recipient's domain. (For example, I send max one message per second to *@hotmail.com) I also use similar rules to ...
3
votes
2answers
3k views

How can I route some emails to a script in Postfix?

How do I route all emails directed to user-*@example.com (i.e. user-1234@example.com) to a pipe command in Postfix? The idea is to create craigslist-style anonymization by assigning dynamic email ...
3
votes
4answers
2k views

postfix mail server setup for 8000 users using active directory [closed]

i wanna to setup postfix mail server instead of ms exchange server . we have around 8000 users , and we want to use active directory for users . how many servers do we need ? what kind of strategy we ...
14
votes
6answers
954 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. ...
9
votes
3answers
12k 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 ...
5
votes
1answer
914 views

Hybrid gmail MX + postfix for local accounts

Here's the setup: We have a domain, mydomain.com. Everything is on our own server, except general email accounts which are through gmail. Currently gmail is set as the MX record. The server also ...
4
votes
2answers
6k views

How to setup a Postfix SMTP-only for multiple domains

This is my first question on Stacks. I always read a lot of solutions to problems here almost every other day. So thank you to all contributors. I am a noob here so please spare some space if I am ...
4
votes
5answers
5k 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
4k views

Processing incoming emails with Python

I'm developing a web application that requires that a registered username be able to receive emails to: <some-username>@<my-web-app>.com I need a way to be able to process the email ...
3
votes
1answer
7k 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 ...
2
votes
1answer
3k views

Block outgoing mail to specific address using Postfix

How could I block outgoing mail to a specific address using Postfix? I've partially managed to block outgoing e-mail using header_checks. However, header_checks doesn’t cover BCC. I also tested ...
2
votes
3answers
3k views

Dovecot Migration and old mails

I'm migrating my mails from an old server to a new one, the configuration is good (mysql virtual accounts & imap only), with dovecot and postfix. It's already running for other users, I just want ...
2
votes
2answers
1k views

Postfix development server - intercept all outgoing mail

So a few times now I've been caught out by clients receiving mail sent from the development server because I didn't sanitize the db. So, as an extra safe option, I'd like to ensure that all mail sent ...
2
votes
1answer
639 views

How can I configure Postfix to send via IP based on origin domain?

I have a server that hosts multiple websites that send email. Each domain has its own IP address, and I would like Postfix to send outgoing email on the same IP so the reverse DNS points back to the ...
1
vote
1answer
3k views

Run script on incoming email message to postfix

All, I need to run a script everytime there is an incoming email message to a postfix email server. I have read the docs but I was wondering what would be the best approach to do this. Would anybody ...
1
vote
3answers
6k views

How to fix mail server SSL?

Our mail server was originally set up using self-created certificates. However when those expired, and I tried to recreate them, the whole thing just blew up. Since I know it will be important, we are ...
5
votes
1answer
467 views

Roundcube & Postfix SMTP: SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca:s3_pkt.c

I have a Postfix / Dovecot / Roundcube setup that I use personally, as well as provide to other users. I am attempting to transfer this entire setup to a new box, but having some issues. Mail ...
5
votes
1answer
461 views

saslauthd multi instance for postfix smtp authentication

I have mail server Postfix+Saslauth. I configure multiple instance for Postfix: postfix postfix-out and two instances for saslauth: saslauthd saslauthd-out Setting saslauthd is ...
5
votes
2answers
5k views

How to redirect all mail from one domain to another in Postfix?

I have two forms of the same domain name, one being a common misspelling of the other, let's say tedswidgets.com and tedswigets.com. I'd like to redirect all mail for <someone>@tedswigets.com to ...
4
votes
1answer
963 views

Why is SPF being validated against my mail server's IP instead of sender's IP?

I have a mail server "example.com" which forwards all emails with recipient "me@example.com" to "me@gmail.com". My mail server runs Postfix and it uses the virtual_alias_maps mechanism to perform the ...
4
votes
2answers
3k views

Postfix, saslauthd, mysql, smtp authentication problems

Trying to get authentication on my mail server (ubuntu 10.04) running but am having trouble. I have a server with postfix for smtp setup, imap server with courier setup. My postfix authentication is ...
3
votes
1answer
251 views

Need help grepping postfix log

I'm trying to search for an unknown string (Message ID) in a log based on a known string (recipient address), and then grep the unknown string to output the entire relevant log information. I'm able ...
3
votes
1answer
78 views

How do i know what postfix is compiled with?

I inherited a version of postfix and it is running fine. I would like to use mysql for my virtual tables and aliases. My question is : how do i find out what Postfix was compiled with?
3
votes
2answers
5k views

amavis + SA not marking messages as spam

I'm running Postfix + amavis + SpamAssassin. Messages are coming through just fine, and they're getting X-Spam-Score as I would expect, along with X-Spam-Status values, implying that SA is doing ...
2
votes
3answers
1k 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
718 views

postfix - different header checks for incoming and outgoing mail

How can I apply different header_checks for incoming and outoing mail using postfix? By default, all header_checks are applied to both incoming and outgoing.
2
votes
3answers
7k 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.***********> ...
2
votes
1answer
3k views

Postfix unable to create lock file, permission denied

I thought I had my postfix configuration all set up on my Amazon Ubuntu server but I guess not. I'm trying to set up an admin email account for 3 virtually hosted Apache websites. Here's my postfix ...
2
votes
1answer
281 views

2 separate postfix instances and confusion with IP's in received field of mail message

i have a problem with my 2 postfix instances. 2 separate IP's and coressponding domain names are setup on networking, they are working fine. I want second mail message (below) to have Received: from ...
2
votes
2answers
3k views

Forward Mails to Gmail

I have a postfix mailserver running. Mails sent from users to Gmail are showing up in Gmail, so it works in general. Same for all other freemail hosts I know. The problem is that some users have no ...
2
votes
2answers
1k views

How to limit the From header to match MAIL FROM in postfix?

SMTP clients are required to pass user authentication before sending emails to other domains (relay). And we can use smtpd_sender_restrictions to make sure the MAIL FROM address matches the ...
2
votes
1answer
3k views

how can i disable outbound mail in postfix?

i want to be able to send mail to someuser@localhost but not allow any mail to go out to the outside world from anyone to anyone. i've seen multiple entries about how to filter or restrict outgoing ...
2
votes
1answer
2k views

Mailman cannot relay e-mails to non-local domains

My e-mail server runs Debian with postfix, dovecot, amavis, mailman, with postfixadmin in a virtual domain setup. All works fine, except for mailman which is not able to relay e-mails to non-local ...
2
votes
2answers
5k views

Postfix auto create Maildir

I've been beating my head against a wall for a while now on this one. Basically, here is the rundown: Our MX record points to a frontend SMTP server, which contains aliases for actually routing the ...
2
votes
5answers
1k views

Google marks seemingly perfect emails as spam

First post - was directed here from stackoverflow! The problem: Google marks seemingly correctly formatted emails from my apache/postfix server as spam. Sample email as follows; (I have replaced my ...
1
vote
2answers
84 views

Why do I have to manually copy /etc/services and /etc/resolv.conf into /var/spool/postfix/etc?

I encountered this problem with my Postfix install: https://www.virtualmin.com/node/23909 i.e. I was getting the error: postfix/smtp[130]: fatal: unknown service: smtp/tcp and like at the url ...
1
vote
1answer
354 views

How can I disable sending mail through postfix smtp with out auth

I just setup a mail server with postfix 2.6.6 and dovecot. I have the auth related config in main.cf like below: smtpd_tls_cert_file=/etc/httpd/ssl/mail.crt ...
1
vote
1answer
215 views

procmail is ignoring user settings

I use procmail for filtering emails in combination with postfix. procmail is triggered by postfix via the in the main.cf mailbox_command mailbox_command = /usr/bin/procmail -t -a "$EXTENSION" but ...
1
vote
1answer
777 views

Wildcard aliases in postfix?

is there way to specify wildcard aliases in postfix virtual table? eg. support+*@foo,bar gets sent to support+*@bar.foo in this way i want to achieve that all mails with a ...
1
vote
2answers
1k views

Receiving emails on CentOS 5, Postfix

Here's the problem : Our server (CentOS 5, Postfix) can't receive mails, bat can send. Running tcpdump port 25 and sending an email from gmail shows that there are incoming request from gmail But ...
1
vote
2answers
2k views

Postfix - am I sending spam?

today I received like 30 messages within 5 minutes telling me that some mail I send could not be delivered, mostly to *.ru email addresses which I did not send any mail to. I have my own webserver ...
1
vote
2answers
5k views

SASL + postfixadmin - SMTP authentication with hashed password

I'm trying to set up the mail server. I have problem with my SMTP authentication using sasl. I'm using postfixadmin to create my mailboxes, the password is in some kind of md5, postfixadmin ...
1
vote
2answers
3k views

Sending emails with postfix via port 587 on gmail

Since my ISP blocks port 25 I'd like to be able to configure postfix to send smtp email over port 587. Every time I try to send an email I see this in the mail.log Oct 17 10:37:49 new-host-2 ...
1
vote
1answer
192 views

What do I need to do to prevent exploitation of my postfix server?

I have a a web server that needs to send emails, but not recieve them. I have installed postfix (it came with nagios, also installed on this server) and now I need to make sure that my server does ...
0
votes
3answers
38 views

How to force a own set of ciphers in Postfix 2.11?

I would like to force a own set of TLS cipher suites rather than use the Postfix built in ones. My desired set of ciphers is (taken from nginx configuration): ...