Questions tagged [postfix-mta]

QUESTIONS ABOUT POSTFIX ADMINISTRATION ARE OFF-TOPIC. Server admin questions may be asked on Server Fault. Postfix is a free, open-source, widely used cross-platform mail server (mail transfer agent), available on all common platforms.

The postfix-mta tag can be used for programming questions related to the Postfix mail transfer agent. Non-programming questions relating to setting up a mail server are off-topic for Stack Overflow. Such questions are often on-topic on Server Fault.

Postfix is a popular mail transfer agent (MTA), created as an alternative to Sendmail by Wietse Venema. Postfix is intended to be similar enough to Sendmail to be comfortable for those already familiar with Sendmail. However, Postfix is specifically intended to be fast, easy to administer, and secure, and will deviate from Sendmail convention when necessary to achieve those goals.

Postfix is free and open source, and offers a source distribution that is capable of running on a wide range of Unix-like systems, including Linux, Solaris, FreeBSD, AIX, HP-UX, and Mac OS X. Some system vendors also provide pre-built binaries for ready-to-run use.

Useful Links

1284 questions
8
votes
3 answers

How to change the mailer Content-Transfer-Encoding settings in Rails?

The 'Content-Transfer-Encoding' setting is set to '7bit' by default. The mail server Postfix is breaking down the email header by bunch of 1000 caracteres, meaning that if you have a long email (using HTML for example), you end up having spaces in…
Vincent Peres
  • 894
  • 11
  • 26
7
votes
3 answers

How do I painlessly receive mail in linux and feed it to Rails?

I've been googling all night for postfix howto's, but still I couldn't figure out how do I manage to receive email on linux-server (being more specific - Ubuntu). All I need is a catch-all mailbox which gets all emails and feeds them to the ruby…
snitko
  • 9,407
  • 10
  • 59
  • 89
7
votes
2 answers

Python : Postfix stdin

I want to make postfix send all emails to a python script that will scan the emails. However, how do I pipe the output from postfix to python ? What is the stdin for Python ? Can you give a code example ?
Lucas Kauffman
  • 6,226
  • 13
  • 57
  • 81
7
votes
1 answer

Postfix - How to process incoming emails?

Does anybody know how to process incoming emails for virtual mailboxes in postfix? I am building web application where users add new content by sending emails to application. Email address used for each user is custom (eg. 123456@myservice.com) and…
Borivojević
  • 368
  • 1
  • 5
  • 12
7
votes
2 answers

Configure Mail Server to receive mail from any domain

I have a postfix mail server on ubuntu on my virtualbox,now the domain of the mail server is abc.com...hence it receives mail from any "from address" but the "to address" needs to be proper i.e a valid user in the mailserver. Now,in my project i am…
Vinod K
  • 1,637
  • 10
  • 30
  • 44
7
votes
2 answers

How to setup Postfix for Ruby On Rails to send email

I want to have postfix to send email in my ROR project. As its safer and hax more functionality. But now I'm quite lost. I installed postfix, got ROR working. But next what should I do? (I only need to send email, not receive it at the…
asdjkag
  • 382
  • 1
  • 5
  • 22
7
votes
2 answers

How to receive bounced mail using AWS SES With Postfix

I have configured postfix to relay mail to Amazon SES by following their integration guide and sending email is working without issue. However, I recently wrote a PHP application using a framework which produced a malformed email message. SES…
7
votes
2 answers

rsyslog conditional RepeatedMsgReduction

I need to deactivate RepeatedMsgReduction on my Linux server to allow fail2ban to evaluate every failed login attempt. (See this bug report: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=440037) As I don't want to flood my log files, I would love…
Peter
  • 321
  • 4
  • 12
6
votes
4 answers

Mac refusing to change hostname

I've been trying to figure out how to use postfix on my Mac and something has gone horribly wrong and I can't seem to fix it. I believe the problem is related to starting Postfix. Basically, the Mac seems to refuse to change its hostname. In bash,…
twistedpixel
  • 1,181
  • 4
  • 12
  • 31
6
votes
2 answers

How to avoid my mails sent from PHP mail() being marked as spam?

I'm using the following to send registration e-mails: $subject = 'subject is here'; $message_raw = 'e-mail text'; $message = base64_encode($message_raw); $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/plain;…
Richard Rodriguez
  • 6,863
  • 14
  • 53
  • 96
6
votes
1 answer

Postfix how to count all outgoing emails?

Is it possible to count overall emails sent per day and save that value somewhere in a text file or in mysql? I need to compare numbers of mails sent from website and mails sent directly or via mail clients. Thanks ;)
Somebody
  • 8,291
  • 23
  • 90
  • 138
6
votes
1 answer

OpenDKIM or dkim-milter

I need to add DKIM to a Postfix installation. I've found two implementations that work with Postfix. OpenDKIM, and dkim-milter dkim-milter. The former claims to be a fork of the latter. OpenDKIM appears to be the more active project, judging from…
user371320
  • 1,388
  • 12
  • 23
6
votes
1 answer

How do I create an account on Postfix?

How would I go about adding an account to Postfix and secure it with a password? I've already setup everything else, and root works.
Albert Zeller
  • 69
  • 1
  • 1
  • 3
6
votes
0 answers

SMTP authentication error: SASL authentication failure: Password verification failed

I have a VPS server which is running postfix + dovecot as mail server. I have already created two accounts which work well. Both can send and receive email via STARTTLS and SSL. But when I added a third account today, it can only receive email but…
Jonathan
  • 463
  • 6
  • 18
6
votes
1 answer

How to configure Postfix to relay all incoming mails to my Python script Without checking if user exists on the system?

I want to configure my Postfix server as accepting all incoming mails to any arbitrary users who don't have to exist on the system, say example@mydomain.com. Now Postfix says, User unknown in local recipient table. What I want is to accept this…
Carlos
  • 177
  • 3
  • 8
1 2
3
85 86