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
14
votes
3 answers

Postfix - Must issue a STARTTLS command first

I am trying to send email through gmail via postfix, but it shows me the following error: Must issue a STARTTLS command first. Sep 6 01:11:34 NovusTec postfix/smtp[10889]: 1284460D68: to=, relay=smtp.gmail.com[64.233.190.108]:587,…
Espector
  • 431
  • 2
  • 5
  • 17
14
votes
3 answers

send email from swift osx application

I am facing problem on sending mail from my osx swift application. To send mail i used the below code import Foundation import Cocoa class sendemail : NSObject, NSSharingServiceDelegate{ func sendEmail() throws { print("enter email…
user2763758
14
votes
2 answers

Emails with same domain does not go out from postfix

I am using postfix to send out emails. Its working fine when I send email to other domains but it does not send email when I send emails to the same domain the post fix is configures with. Below is my configuration: myhostname =…
13
votes
2 answers

Configure Postfix to Use Gmail SMTP on Ubuntu

I'm using this online guide here to enable simple mail sending from linux (ubuntu) terminal with postfix through some gmail account. I've done the steps listed there: sudo apt-get install postfix mailutils libsasl2-2 ca-certificates…
OrenIshShalom
  • 5,974
  • 9
  • 37
  • 87
13
votes
4 answers

Quoting/Escaping variables in mail body

I am feeling a bit awkward, because I am generating a mail-body with PHP without escaping the variables. In HTML I am using htmlspecialchars() or similar functions, for command lines escapeshellarg(), but for mails? For example something like…
Trendfischer
  • 7,112
  • 5
  • 40
  • 51
12
votes
3 answers

SMTP error: "Recipient addressed refused" when trying to send an email using python and postfix

I'm getting this error: raise SMTPRecipientsRefused(senderrs) smtplib.SMTPRecipientsRefused: {'example@hotmail.com': (550, '5.1.1 : Recipient address rejected: hotmail.com')} when trying to run my python script. Regardless of what recipient…
user1186173
  • 565
  • 3
  • 7
  • 26
12
votes
4 answers

How do I set up my Ubuntu VPS to send outgoing mail?

My VPS provider (Slicehost) doesn't provide an SMTP server. I use Google Apps to send and receive mail for my domains, but I want to be able to programmatically send e-mail. I've been Googling this issue on and off for many months, and I just can't…
Max Cantor
  • 8,229
  • 7
  • 45
  • 59
11
votes
1 answer

Some exposed Docker ports are not accessible from outside (dovecot, postfix)

this is driving me nuts, but for some reason, I cannot access certain ports from outside. I've checked almost every possible setting, but I have no idea why this is not working. I have no idea where to fix this issue (Ubuntu firewall vs. Docker vs.…
Sascha
  • 581
  • 1
  • 4
  • 19
11
votes
1 answer

Sending Emails With GitLab not working correctly

I'm trying to troubleshoot why GitLab Omnibus is not sending automated emails using Postfix, which is already installed and configured correctly (it's being used by other applications installed on the server as well). When I make a change to an…
Maumee River
  • 253
  • 2
  • 7
  • 25
10
votes
1 answer

Permission denied when doing Postfix ubuntu tutorial

Im working on this tutorial Postfix mail server. https://help.ubuntu.com/community/Postfix When i run the command. su - fmaster mail I get the error. Cannot open mailbox /var/mail/fmaster: Permission denied No mail for fmaster also i sign in as…
mr.low
  • 448
  • 6
  • 17
10
votes
5 answers

Postfix Ignores PHP mail() function

I'm successfully sending mail using PHP using the mail() function but the sending is showing up as the server address and not what I have configured in the script. Postfix is installed on the apache server. On ServerFault answer I read to use the…
Rocco The Taco
  • 3,695
  • 13
  • 46
  • 79
10
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
  • 379
  • 4
  • 13
9
votes
2 answers

postfix: send a copy of every email to a given email address

I have a postfix email server and there is an issue I want to debug. How can I configure it to send a copy of every email to my email (in addition to delivering the email to its intended recipients).
flybywire
  • 261,858
  • 191
  • 397
  • 503
9
votes
2 answers

Set up Nodemailer to secure email with a STARTLS handshake?

I need to send e-mail through my remote Postfix/Dovecot SASL service from Node.js on my desktop. When I send email using Thunderbird, it works and the Postfix server logs show Anonymous TLS connection established from unknown[dh.cp.ip.ip]: TLSv1.2…
Kickaha
  • 3,680
  • 6
  • 38
  • 57
9
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
  • 448
  • 1
  • 7
  • 23