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
5
votes
1 answer

Piping Email with Postfix

I'm trying to set up a pipe for a specific email address. I'm following what I see here, but after newaliases I get the following: postalias: warning: /etc/postfix/aliases, line 1: name must be local My /etc/postfix/aliases: pipe@example.com: "|…
Steve Robbins
  • 13,672
  • 12
  • 76
  • 124
5
votes
1 answer

postfix can't connect with mysql table when using unix socket. postmap succeeds though?

Postfix is throwing up an error saying: Jul 9 14:41:26 tmail postfix/trivial-rewrite[4342]: warning: connect to mysql server unix:/var/run/mysqld/mysqld.sock: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'…
ΣΚΟΤ
  • 354
  • 2
  • 8
5
votes
1 answer

Clear MAMP (postfix?) Mail Queue on Mac OS X 10.6 / PHP Mail() Loop Failure

I guess it serves me right, but I was testing a looping mail script that was designed to send an email to a friend every minute (for a set period of time) just to annoy them. (A reminder for a forgetful person) I was testing it on myself to see if…
James
  • 3,233
  • 3
  • 40
  • 57
4
votes
4 answers

Postfix piping email to php, permissions error

I'm attempting to pipe an email to PHP with my Postfix mail server, using the technique mentioned here and have encountered the following error... Mar 16 22:52:52 s15438530 postfix/pipe[9259]: AD1632E84C63: to=,…
stevenmc
  • 1,659
  • 4
  • 18
  • 27
4
votes
1 answer

Action Mailer not working with sendmail

I'm trying to send a mail with sendmail. When sending the mail, I don´t get any errors in the logs, but when I look into my mailbox, the mail isn´t there, not even in the spam folder. I get some infos in the mail.log file from my var/log directory,…
4
votes
2 answers

PHP Mail Postfix

I have a PHP program using the mail() function. I have this running on a Linux server. Normally it is setup to run over the Linux sendmail function but my machine is setup to use Postfix. Can I use the PHP mail function over postfix and if so does…
jcmitch
  • 2,088
  • 9
  • 27
  • 33
4
votes
3 answers

Xcode Server Bot not sending email reports

I am running Xcode Server Bots on my local iMac but the email notifications are not being sent. I have followed many tutorials and have postfix setup and working. I can successfully send emails using the command sudo echo "Test sending email from…
Darren
  • 10,182
  • 20
  • 95
  • 162
4
votes
3 answers

Integrate postfix mail into my (python)webapp

I have a postfix server listening and receiving all emails received at mywebsite.com Now I want to show these postfix emails in a customized interface and that too for each user To be clear, all the users of mywebsite.com will be given mail…
Nanda Kishore
  • 2,789
  • 5
  • 38
  • 61
4
votes
1 answer

Django SMTP authentication best practices

I have a Django website and a postfix service running in the same Ubuntu Server 10.04 box. What type of authentication would you suggest me so that it'll be simple and secure? If I want my messages to be DKIM/DomainKey signed and compliant with…
Sergio
  • 4,537
  • 4
  • 33
  • 41
4
votes
1 answer

OSError: [Errno 99] Address not available - sending e-mail from django docker app with gmail smtp

I'm trying to send an e-mail from my django application in docker and I'm getting following error: OSError at /accounts/mail/ [Errno 99] Address not available Request Method: GET Request URL: https://localhost:8000/accounts/mail/ Django Version:…
Michał Tołkacz
  • 111
  • 1
  • 2
  • 8
4
votes
2 answers

Sending smtp emails with SpringBoot application

I have a basic SpringBoot 2.0.5.RELEASE app. Using Spring Initializer, JPA, embedded Tomcat, Thymeleaf template engine, and package as an executable JAR file. I've configured the springboot properties as…
Nuñito Calzada
  • 4,394
  • 47
  • 174
  • 301
4
votes
1 answer

How to disable postgrey from a postfix server?

I have postgrey installed on a postfix mail server, but I don't want it anymore. I see no option to disable/enable postgrey in postfix. When I uninstall it, the server stops receiving mail. Do I need to re-install my entire mail server without…
Jesse
  • 750
  • 1
  • 9
  • 25
4
votes
3 answers

Dockerizing Postfix Relay server

I'm trying to build a docker container dedicated to a Postfix SMTP relay. I fail to make it start the postfix service on it after several tries. Here's the dockerfile FROM centos:centos7 LABEL Author = "Aurelien HUGON LABEL Description =…
Aurelien
  • 688
  • 1
  • 9
  • 22
4
votes
1 answer

Why is smtplib.SMTP().sendmail not sending a DKIM signed message

I have set up postfix on a server, along with openDKIM. When I run: echo "Testing setup" | mail -s "Postfix test" {my_email_address} I get the email, and in the mail headers there is a DKIM-Signature header. When, however I write a python script to…
Oliver Fawcett
  • 583
  • 1
  • 6
  • 18
4
votes
1 answer

PHP mail() fails to send mails | Postfix configuration | Apache 2 | Ubuntu 16.04

First of all, sorry if this is a long post, I'm trying here to gather all the informations (I can recall) that people on other forums seemed to find important. Secondly I apologize if the answer to this post happened to be "obvious", but to make it…