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

JavaMail fails to send email from docker container

I just deployed some Java code to production(its a Java web app deployed in Tomcat) and I noticed that the module responsible for sending Email started to fail. This was not the case when the code was running on my local system. I could at least…
gbenroscience
  • 994
  • 2
  • 10
  • 33
2
votes
1 answer

How to create a postfix-like server with python smtpd

About the python smtpd library, I try to override the process_message method, but when I try to connect to it with client and send message to, say a gmail account, it just print the message out on console, but I want it actually to send out the…
2
votes
0 answers

How to configure Postfix for Mojave?

I'm trying to get Postfix working on my Mojave system but it doesn't start. I created a sasl_passwd file and edited the main.cf file. By starting postfix in the terminal I get the message postfix/postfix-script: fatal: mail system startup failed I…
2
votes
1 answer

Nodemailer and postfix

I have install postfix with default parameters as Internet site, nodemailer package into my node.js server. And trying to do this: var transporter = nodemailer.createTransport({ host: '127.0.0.1', port: 25, // auth: { // user:…
Maksim Zarechnyi
  • 407
  • 3
  • 16
2
votes
2 answers

How to send mail from Ubuntu server using dockerized mail server

I'm looking for a simple way to programmatically send emails from a Linode Ubuntu server (not bulk or spamming, simple iOT type notifications). I have a dockerized postfix/dovecot system up and running, but I don't know how to use that from outside…
svenyonson
  • 1,815
  • 1
  • 21
  • 30
2
votes
1 answer

Rails 3 Postfix sending / receiving emails on same server using gmail

We have a rails 3 application running on vps using postfix for sending email. All emails for this domain name are hosted on Google Apps. All emails sent to domains other than the domain the app is hosted on are sending properly but the emails using…
jeffreynolte
  • 3,749
  • 11
  • 41
  • 64
2
votes
0 answers

Need not standard postfix configuration

The task turned out to raise the relay postfix, which can send messages from mynetworks, to attempts to send messages through it to the domain from other hosts, it should issue 451. At the same time, NDR should be sent from it to the internal mail…
Alius
  • 21
  • 1
2
votes
1 answer

Gitlab Docker Postfix start on "boot"

I have set up GitLab on docker container (from gitlab/gitlab-ce). did apt-get install postfix inside container. Now when I restart container, postfix is not started (through in /etc/rc2.d/ there is S01postfix link). Question: how do I start services…
dockter c
  • 21
  • 1
2
votes
1 answer

.NET Core MailKit SMTP AUTH LOGIN as local linux account

I use MailKit library to send mail from ASP.NET Core application. I also tried to avoid MailKit library and use TcpClient directly to send commands to SMTP server (to ensure that library is not a problem). Postfix SMTP server is located on Linux…
Pocke
  • 23
  • 5
2
votes
1 answer

Postfix - only allow to send mail as logged in user

By default, Postfix allows sending as another user when logged in, even non-existent ones. To reproduce: I have postfix running with STARTTLS and authentication enabled. Connect to the MTA with openssl s_client -starttls smtp -connect server.com:587…
Kevin C
  • 4,851
  • 8
  • 30
  • 64
2
votes
0 answers

Laravel with Postfix

I was using gsuite to send mail from laravel, config on .env was: MAIL_DRIVER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=465 MAIL_USERNAME=account@gmail.com MAIL_PASSWORD=password123 MAIL_ENCRYPTION=ssl It is working ok, but now i installed…
2
votes
3 answers

Postfix: Send email to PHP

Greetings, Anyone know of a good way to send an email to my postfix server which then opens a PHP script to process this email? I could do cron, but I'd prefer to do it instantly... Any pointers greatly appreciated. Many thanks in advance,
Eamorr
  • 9,872
  • 34
  • 125
  • 209
2
votes
1 answer

Not receiving emails to local users after configuring Postfix with external domain

I have configured Postfix running under Ubuntu server to only send emails, but since configuring with my external domain I am unable to receive (or send) emails to local accounts on the Ubuntu server .. e.g. root or myusername.As a result, I am not…
Dibly
  • 55
  • 5
2
votes
1 answer

Check iRedMail version installed

I have an iRedMail installation in a Centos 6.6 VM, I'm trying to create email accounts through the database: the procedure change if you have 0.9.6 version or minor as you can read here. Because it works with the minor's version process I know…
hestellezg
  • 3,309
  • 3
  • 33
  • 37
2
votes
2 answers

UTF-8 characters not getting displayed

When i run my JUnit test case to invoke the standalone application which sends mail the characters are getting displayed properly in mail but when this application runs on a different machine through a thread it displayed ? instead of the real…
vaibhav
  • 3,929
  • 8
  • 45
  • 81