Postfix is a free and open-source mail transfer agent (also "MTA"), written in 1997 and still actively developed.

learn more… | top users | synonyms

16
votes
9answers
37k views

Just want to send emails from my Ubuntu Server. What simple SMTP server solution to use? [closed]

Basically I have a Ubuntu Server machine and I would like an idiot-proof solution for sending emails from my website that is also running in this same machine. My doubts are: 1) Should I use postfix ...
15
votes
1answer
14k views

The simplest way to set up a secure, IMAP, email server? [closed]

I would like to get rid of Google as an email provider, and set up a complete email solution on my dedicated server. The issue: I wish the setup to be as simple as possible, so that it wouldn’t be a ...
10
votes
4answers
34k views

How to send email with attachment by postfix from command-line?

I've just setup a new Ubuntu 10.04 LTS server on linode for myself. Followed an excellent instruction at: here to finish the installation of some basic stuff including postfix. I am trying to figure ...
10
votes
1answer
9k views

Postfix: forwarding e-mail to GMail not working

On my (web server) machine, I just want to be able to send and receive e-mail, and have e-mail addressed to particular addresses forwarded to my GMail inbox. Right now, I have installed postfix and ...
9
votes
4answers
2k views

What is the best MTA setup for a home/laptop computer (*not* server)?

What is a good MTA (e.g. Postfix or something else) setup for a home computer behind a NAT, or a laptop that is not always online? I've read a lot of Postfix tutorials on how to set it up this way or ...
7
votes
2answers
42k views

how do I change postfix port from 25 to 587?

I am total noob about Unix and CLI. after googling for almost 6 hours I came to know I should be editing postfix port from 25 to 587 for PHP mail() function to work. and here is the solution I got ...
6
votes
2answers
7k views

Regex multiple catch-all setup in postfix

I need to setup a regex catch-all function on postfix such that: tom.(anything)@domain.com goes to tom@other.com phil.(anything)@domain.com goes to phil@other.com How can this be achieved in ...
6
votes
3answers
11k views

Changing default from e-mail address for system accounts when using sendmail

I would like certain system accounts (root and www-data) to have the header From: Example Company <noreply@example.com> when e-mail is sent using either the mail or sendmail commands, or from ...
6
votes
2answers
960 views

Easiest way to send mail from Linux Server

I want my server to send me email alerts every time it does things such as run a backup. I have tried to setup programs like Sendmail, Postfix, etc on my Ubuntu Server box and it is really a pain for ...
6
votes
0answers
882 views

Connection timing out when connecting to Milter service [closed]

I'm using a VPS with CentOS 5, containing Postfix and OpenDKIM. I have set up OpenDKIM using this guide. Everything seems to work properly as the log in /var/log/maillog does not report anything other ...
5
votes
4answers
2k views

What all is required for email from my server to pass through spam filters?

I have a serverbeach server with postfix installed. The hostname is something like p3204059.pubip.serverbeach.com The FQDN is specified as NONE for the server itself. I clicked change ptr record, ...
5
votes
3answers
5k views

Benefits of running my own mail server versus switching to google apps [closed]

I've happily been running a mail server on my home network to handle my personal domain email for the last 6 years. The old PIII server that is my mail server is now on it's last legs and I'm ...
5
votes
3answers
2k views

Postfix: unlimited per-user addresses via “+” sign

Gmail users can get virtually unlimited email addresses by using $name+$suffix@gmail.com ("plus addressing"). I'd like to have that for my own mail server, which is running Postfix. The mailbox and ...
4
votes
2answers
6k views

In postfix, how could I disable incoming mail?

I would like to be able to send mail to remote servers, from scripts running on my VPS via SMTP, but otherwise reject all incoming mail with postfix on Debian squeeze. (And in general disable any ...
4
votes
1answer
18k views

NOQUEUE: reject: Relay access denied

I recently setup a mail server following the instructions on linode.com (https://library.linode.com/email/postfix/postfix2.9.6-dovecot2.0.19-mysql) except I am using postgreSQL instead of mySQL. ...
4
votes
0answers
203 views

dovecot WILDCARD SSL (certicate.crt, private.key, intermediate.crt) not working

I have installed dovecot and postfix and got it working, but when I change the ssl_cert_file, ssl_key_file and ssl_ca_file dovecot configuration to my WILDCARD SSL certificate (working on apache) it ...
3
votes
3answers
3k views

read localhost e-mail with thunderbird

What would be simplest IMAP server allow Thunderbird to read messages to user@localhost for Ubuntu Linux? My assumption was that if mailutils could read mail with the "mail" command then IMAP or POP ...
3
votes
1answer
15k views

How to get `mail` on a CentOS 6 server (running postfix)

On my old server, and most other devices I have run, there is a provided mail program. On my new CentOS 6 server, running postfix as the MTA, I cannot send command-line email via mail - the tool is ...
3
votes
2answers
11k views

Monitor Postfix outgoing mail delivery

I'm using GNU Mailman with Postfix to run a mailing list, and would like to monitor the delivery of outgoing mail, that is: for each mail sent from the list, check whether a 250 (OK) message was ...
3
votes
2answers
3k views

Postfix TLS configuration

I am in the middle of setting up a postfix server on Arch Linux. It seems to be working ok so far - I can successfully speak to it via telnet localhost 25. However, when I try to connect using openssl'...
3
votes
1answer
7k views

DKIM Signature Failing - DNS record lookup is incorrect

I am running Ubuntu 12.04 on a Linode with Postfix and opendkim. My DKIM signature is validating/passing when I test at http://www.brandonchecketts.com/emailtest.php but it is failing when I test ...
3
votes
1answer
31 views

How to set up Postfix to save the message body in the log file?

I need all the body of incoming and outgoing messages are written to the log file. How to setup Postfix to do that?
3
votes
1answer
3k views

postfix - warning: connect to transport private/smtp: Connection refused

I have been having trouble with my postfix+dovecot mailserver. Every time I try to send an email to a different server (gmail etc.) I get the following messages in the log: postfix/qmgr[28918]: ...
3
votes
1answer
2k views

Postfix: SMTP, use port 587 rather than 465

I have set up a mail server on AWS EC2 using the instructions from Flurdy: http://flurdy.com/docs/postfix/ it has mostly gone well. My issue is that I would prefer to use SMTP port 587 with TLS ...
3
votes
1answer
2k views

Ubuntu Postfix Error: timeout exceeded (in reply to end of DATA command)

I have Ubuntu box behind the router (Asus RT-N13U), port 25 is forwarded to box from router via VirtualServer feature on router. The problem is that some clients (here host.ru) can't deliver mail to ...
3
votes
1answer
609 views

How to forward email for an entire domain to an email address using SRS (Sender Rewriting Scheme)

I have a domain for which I want to forward all email destined for addresses at that domain to a single email address. For example, I want to forward john@example.com and fred@exapmle.com and mary@...
2
votes
3answers
2k views

Is it possible to queue a message by writing it to file?

I'm wondering if it's possible to create mail messages and put them into the postfix queue simply by writing files to the hard drive. Currently I have a script which uses a socket connection to dump ...
2
votes
3answers
2k views

Terminal mail delivery delay in Mac OS X

I'm using mail from the Mac OS X terminal to send the results of a database query to me via email. Most of the time it works, but sometimes there is a long delay before the mail arrives (often when ...
2
votes
3answers
3k views

Debian sendmail Cannot write

I had a working sendmail configuration on my debian server, i tried to put a postfix to receive email but abandoned, remove postfix, re install sendmail but nothing work anymore :( here is my mail....
2
votes
3answers
4k views

CentOS 6 - Inodes full - can't delete folder containing files

I have a CentOS 6 server at rackspace with 40GB of space. My server kept crashing with 'no space left on device' errors but there is over 50% free. When I run df-i this is the output: /dev/xvda1 ...
2
votes
3answers
1k views

Using supervisord to control the postfix MTA

I am trying to use supervisord to control postfix. The usual method is to specify a command which starts the daemon, I use postfix -c /etc/postfix start. The postfix man page says that to stop you ...
2
votes
1answer
502 views

How to disable Postfix SPF from rejecting mail?

I am having an issue with Postfix and SPF that I can't seem to figure out. I have installed SPF for Postfix using the guide on this link (postfix-policyd-spf-perl). However, I don't want Postfix or ...
2
votes
2answers
221 views

How to deal with mail senders failing on STARTTLS?

I try to use my mail server richtercloud.de for subscriptions to vger.kernel.org mailing lists. I set up postfix 2.11 running on Ubuntu 14.04 and sending and reception works. I set up postfix to ...
2
votes
1answer
3k views

Postfix: relay mail to smart host for specifc users

Currently i have a VPS that has a host of email accounts on for several domains. most are simple and have all local mailboxes. but i have one user that wants to have a hosted exchange account but ...
2
votes
1answer
1k views

Do I have to care about hosts.allow or hosts.deny when I can't reach postfix?

I am using postfix for outgoing mails (collection from machines on 192.168.1.0/24 and forwarding to my ISP's mail machine) and I have trouble accessing postfix for sending mails. The machine I use for ...
2
votes
1answer
1k views

How do I configure the built-in Postfix on Mac OS X to not connect directly to destination hosts other than itself?

I run cron jobs on my Mac laptop, and so I want the mail daemon to be able to send the output mail to my regular mail account. I've got that working (my local account has a .forward file), but I'm ...
2
votes
1answer
476 views

Bulk-deleting inbox mails managed by POSTFIX

Had an issue several hours ago with a client mail account, which got compromised. As a result, he had hundreds of thousands of spam queued in postfix, which lead to several issues. Everything's fixed ...
2
votes
1answer
162 views

Arch Linux ARM: Send email after successful ftp transfer

I have a script running on my box that checks every 5 minutes to see if a certain time type was uploaded to a folder on my Ftp server. I would like for it to send an email when the transfer is ...
2
votes
1answer
205 views

Forwarding with postfix: prevent rewriting of from address

When I send a mail via php mail then postfix rewrites the from address like this. For example: From: info@mydomain The from becomes: username@myhosthame How can I stop this from happening? I want ...
2
votes
1answer
458 views

Troubleshooting my home mail server setup

I've got some small domain names that I host on my home server and would like to get some basic email addresses for those domains. I set up an Ubuntu 12.04 server and followed the instructions here ...
2
votes
2answers
2k views

Debian / Monit: mail is only sent to local system, not to outside address

I have a Debian server and have monit installed and running. I use the following settings for alert mails: set mailserver localhost # primary mailserver set mail-format { from: monit@abc.test } set ...
2
votes
1answer
2k views

Securing smtp with login

I have a ispconfig server, and it seems that someone is using it to send spam. I got about 130 "Mail Delivery System" email about declined send email. This spammer uses my email address as sent from ...
2
votes
0answers
157 views

Delivering emails for one user from two domains into a single mailbox in Postfix+Dovecot

I am setting up a mail server using Postfix+Dovecot on RHEL7. Though it is not required, I would like to set it up such that the mail server is able of hosting multiple domains. The problem that ...
2
votes
0answers
284 views

Problems with postfix and sending mails

I have ran into problems while configuring my postfix for my CENTOS machine. Note:The mailserver itself should be localhost only and only be able to send mail internally. the following shows up when ...
2
votes
1answer
418 views

Signing-milter / SMIME - how are this email signed incorrectly?

I have a problem with signing-milter (http://www.signing-milter.org). The problem is that the -b flag is required, and the -b flag is not recommended because it outputs non-RFC compliant email. ...
2
votes
1answer
943 views

Mailman + Postfix: unknown user

I set up postfix + dovecot and know that I want to have mailing lists I decided to install mailman. Everything is working except that I cannot send emails to my mailing list (and this is quite ...
2
votes
1answer
394 views

Changing X-Original-To: header in postfix

I am using a virtual file with my postfix to redirect all mails coming to my domain to a user My virtual entry looks like this @domain.com root Now the X-Original-TO header shows root@domain.com. ...
2
votes
1answer
302 views

can not receive mail by own created mail from gmail

I want to create my own mail ID like myname@mydomain.in instead of paying extra to google for extra mail ids as I have already myname@mycompany.in. Things I have are mydomain.in(I paid for this ...
2
votes
1answer
833 views

Piping inbound email for specific users through a script with postfix

I'm trying and failing to setup postfix so that inbound email to a specific address is piped through a script. It's all new to me, and I think I'm simply failing to understand the complexities of ...
2
votes
1answer
574 views

postfixs email rejected with forged ehlo/helo error 550

i have multiple ip addresses and domains and configured postfix to use the correct ip address according to the sender-address using a map now there are still servers answering with a forged 550 but i ...