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

learn more… | top users | synonyms

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: ...
2
votes
2answers
855 views

What do I need to parse incoming emails?

My intention is to parse incoming emails with PHP. What would be the simplest way to set this up? Would it suffice to rely on Postfix for this, or is there a better alternative? The purpose of the ...
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 ...
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 ...
4
votes
5answers
24k views

mail loops back to myself | postfix

Hi I have an issue with bounced mail it does not happen all the time but at the same time is very frequent. Most of the time if I send an email to an address that does not exist then i get a bounce ...
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 ...
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 ...
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 ...
4
votes
3answers
7k views

Postifx disable local delivery

is there any form to prevent local delivery on a postfix server? Ideally, I want to avoid local delivery to some domains, because this postfix server is a google apps backup one. Thanks in advance, ...
2
votes
2answers
2k views

Why does Postfix deliver mails locally instead of relaying them to Google Apps?

I get the following error trying to send an email to my Google Apps Email at admin@mydomain.com from my Postfix server. to=, relay=local, delay=0.09, delays=0.07/0/0/0.02, dsn=5.1.1, ...
2
votes
8answers
2k views

Mail Server using Postfix

I have currently set up my web application on Amazon EC2 server. As a well known fact sending email from EC2 has a problem. As a cheap and long lasting solution instead of using "authsmtp" is it ...
5
votes
2answers
637 views

How do I get Postfix to deliver ALL mail to a custom script?

I am trying to configure postfix so that ALL mail that arrives (to any domain) is piped into a shell script that I have. I have tried several things, including setting mailbox_command = ...
0
votes
1answer
2k 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 ...
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 ...
5
votes
3answers
5k views

postfix: force server to send mail outside of localhost [closed]

I have a php file that sends mail using the mail() function. The problem is one of the forms sends to a domain that is registerred on my server while having the mail handled on a different server. ...
5
votes
3answers
346 views

Is SPF enough to make sure emails get delivered to inbox?

So I just succesfully set up postfix + dovecot. is SPF enough to make sure emails get delivered to my website's users? I don't want my emails to end up in their spam box.
4
votes
1answer
2k views

How can I set up Postfix so that all email sent on my dev box gets routed to the developer email group?

I have a development server, and at the moment email is disabled on it, so we can do whatever we need to with the system without worrying about accidentally emailing clients' customers. I'd like to ...
3
votes
3answers
3k views

How to catchall email to a single user mailbox in postfix

I am new to postfix, i need to configure it so that any incoming email to my server will be delivered to a local user account(/etc/passwd). My server will not have any virtual domains($mydestination) ...
4
votes
3answers
6k views

Add email account to postfix

I have add a user in linux called "mailer". I'm only using this user to send outgoing mail, not receive. What do I need to do in order use the following SMTP information to send outgoing mail? ...
3
votes
4answers
12k 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 ...
2
votes
2answers
15k 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
2answers
3k views

Postfix: send all bounce messages to postmaster

The situation is that we have a number of guests, say 80, sending through a central mail infrastructure out to the web. The way the network is setup the mail server cannot necessarily initiate ...
1
vote
2answers
1k views

Postfix configuration: different outgoing hosts based on sender

I've seen a few answers to this on the web, but nothing definitive nor any good examples. I relay all my mail out through Postfix, currently everything sent to my ISP's mail server. However, there ...
4
votes
3answers
4k 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, ...
0
votes
1answer
2k views

Postfix/SMTPD Relay Access Denied when sending outside the network

I asked a very similar question some 4 or 5 months ago, but haven't tracked down a suitable answer. I decided to post a new question so that I can ... a) Post updated info b) post my most current ...
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 ...
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 ...
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 ...
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 ...
15
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 ...
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 ...
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 ...
5
votes
2answers
2k 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 ...
1
vote
2answers
6k 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 ...
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 ...
5
votes
3answers
2k 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
159 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) ...
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 ...
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 ...
4
votes
2answers
103 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 ...
4
votes
2answers
9k 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 ...
3
votes
2answers
359 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
3answers
2k views

How do I spamtrap with Postfix?

How do I setup spamtraps with Postfix so clients that send to trapped addresses are prevented from sending me more spam?
2
votes
3answers
3k 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
2answers
2k views

Configure Postfix to use external MX servers for delivery of local mail if user is unknown

I have a following setup: linux box with postfix configured to be responsible for example.com domain domain's MX servers are configured so that mail sent to example.com is sent to google mail ...
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
1answer
60 views

Relase outgoing mails to internet if local delivery failes

How can I release outgoing mail to the internet if local delivery fails in postfix? My server has virtual domains configured with mydomain.tld. When I send an email to somename@mydomain.tld it try to ...
1
vote
2answers
3k 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 ...
1
vote
6answers
4k 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 ...