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

1541 questions
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,885
  • 11
  • 35
  • 45
7
votes
1 answer

Swiftmailer: Unable to connect with TLS encryption

I'm trying to send emails via Symfony with Swiftmailer. On the production server I get an error: [2016-08-20 11:59:37] app.ERROR: Exception occurred while flushing email queue: Unable to connect with TLS encryption [] [] This is what I have in my…
Clearasil
  • 245
  • 1
  • 2
  • 11
7
votes
1 answer

JavaMail not sending SMTP email via postfix

I am trying to set up JavaMail to send and receive emails using Postfix, which is installed on my CentOS7 development box. I have confirmed that postfix is able to display received emails by typing MAIL=/home/root/Maildir into the terminal,…
CodeMed
  • 9,527
  • 70
  • 212
  • 364
7
votes
3 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…
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,212
  • 4
  • 14
  • 33
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;…
Frantisek
  • 7,485
  • 15
  • 59
  • 102
6
votes
0 answers

ARC Sign / Verify in Postfix

I've upgraded my Postfix mail system from opendkim to dkimpy in Debian Stretch using Backports, because I'm trying to implement ARC signing and verification. I was able to get dkimpy working in so far that DKIM verification was done on inbound mail,…
Julian
  • 167
  • 6
6
votes
2 answers

Mail-Tester.com : Freemail in Reply-To, but not From

I can not solve the problem of spam. I only have 7.6 / 10 on Mail-Tester.com. I specify that I use postfix, and I need it only for the sendings. Here is my result: https://www.mail-tester.com/web-n0z33 Mail-Tester.com tells me that the problem come…
stephweb
  • 125
  • 2
  • 16
6
votes
3 answers

Gmail smtp SASL authentication

I'm using postfix to send email via gmail with an application's password (two step-validation activated). Each time I test sending mail using sendmail command, I get this error: Action: delayed Status: 4.7.14 Diagnostic-Code: X-Postfix; delivery…
Trong Lam Phan
  • 2,292
  • 3
  • 24
  • 51
6
votes
3 answers

Use PHP sendmail from Docker container to send through host Postfix

I want to send mail from my Alpine-PHP-Fpm container using my host postfix installation. RECAP PHP-Fpm Container -> Sendmail -> PostFix on host -> Sending via SMTP But I get sendmail: can't connect to remote host (127.0.0.1): Connection…
javal88
  • 1,188
  • 3
  • 17
  • 29
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
  • 9,316
  • 26
  • 94
  • 142
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
  • 14
  • 23
6
votes
2 answers

Send email in via Java using Postfix

I am currently developing a web application based on Java EE, JSF, EJB etc. This application is deployd on a Debian 7.6 and there is Postfix installed. I can use something like this to send emails via commandline: /usr/bin/mailx -s "SUBJECT" -a…
alexander
  • 1,191
  • 2
  • 20
  • 40
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
  • 538
  • 1
  • 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
  • 167
  • 3
  • 10