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

want email from my server (postfix) to an email address on my domain to be delivered to google apps

I have google apps for receiving email. I get inquiries from people on info@[my-domain.com], which email is hosted on google. Sometimes, I want my rails set-up to send emails from my own server, and that works fine. But when I want to send to an…
BobMilton
  • 594
  • 5
  • 9
3
votes
0 answers

Loki LogQL corellate maillogs

please assist me on parsing mail logs using Loki & Grafana :) My logging server collects maillog files from Linux server, and I want to use Loki to check status (sent, deferred, etc) of messages from specific user. The problem is that mail logs are…
Dmitri
  • 111
  • 1
  • 7
3
votes
1 answer

Python filter for postfix

I am trying to make a simple Python filter for postfix, to add in a 'Reply-to' header to certain messages. What I've done so far is to take the email from stdin, and parse it into an email object like so: raw = sys.stdin.readlines() msg =…
jvc26
  • 6,363
  • 6
  • 46
  • 75
3
votes
1 answer

is "mail command in linux" fire-and-forget or wait-until-mail-sent?

I'm trying to send mail from my application server using the following code FILE *mailer = popen("/usr/bin/mail -s 'Some subject here' user@domain", "w"); fprintf(mailer, "Hello %s,\nThis note is to inform you that your job completed…
eugene
  • 39,839
  • 68
  • 255
  • 489
3
votes
1 answer

Piping with postfix aliases and MySQL

I am trying to get incoming email to a specific email address redirected to a php script. I am using Postfix with address and domain information stored in MySql. As I believe the piping cannot be done from the mysql table, the address is paired…
matfr
  • 109
  • 1
  • 10
3
votes
0 answers

Postfix - relaying specific email addresses within a mydestination domain

Having some issues trying to get something working on postfix. That is, I have a domain abc.com which is a destination domain on my postfix server 1.2.3.4, it hosts mailboxes for addresses in this domain locally by default -…
STOIE
  • 141
  • 1
  • 9
3
votes
0 answers

Custom Header Information in Postfix Bounce Header

I am trying to keep the custom header information in a bounce message. I am using postfix 3.4.14 If the message is send to the original destination, the custom header is complete: Content-Type: text/plain; charset=us-ascii Content-Disposition:…
chris_2568
  • 31
  • 1
3
votes
0 answers

Check the Status of Emails Sent by Postfix

I'm writing an application that sends emails using postfix and need to know an email is sent (250 ok) or not. I can check the email status from log files (and parse it by something like rsyslog) , but it's not a clean way. My question is : is there…
Milux
  • 368
  • 1
  • 4
  • 15
3
votes
0 answers

How to configure smtp-relay in a docker container to forward email sent from another container in the same network

I am trying to configure an SMTP Relay Docker container obtained from https://hub.docker.com/r/turgon37/smtp-relay for use by another container in the same network to send outgoing emails to an external SMTP server. This SMTP Relay container simply…
John R Ramsden
  • 355
  • 4
  • 14
3
votes
1 answer

Email header with multiple received fields: How can this happen and can this be used to fight SPAM

I often receive fishing /SPAM emails with multiple received fields. First, I'd like to understand how one email header can have more than one received field. Second, I'd like to know if I can use this to fight SPAM. Here is an example: …
3
votes
2 answers

Consistently getting None (no SPF record) even when SPF record is defined

I am trying to create an SPF record for my domain and enable my mail server to evaluate it. I am using Postfix on the mail server and policyd-spf (Python) to evaluate the records. Currently, I have an SPF record published for my domain over my…
Britton
  • 41
  • 3
3
votes
2 answers

Opendkim error "key retrieval failed" when long dkim keys are used

I'm using postfix with opendkim and see a lot of the following errors: opendkim[63]: 84D4C390048: key retrieval failed (s=selector1, d=hotmail.com): 'selector1._domainkey.hotmail.com' reply truncated The error occurs for a lot of different domains,…
hjsimpson
  • 1,047
  • 11
  • 18
3
votes
2 answers

Postfix smtpd - constant connect and disconnect in /var/log/mail.log

I'm setting up a new server (Ubuntu 18.04.1 LTS) with postfix v3.3.0. I followed the standard deployment for postfix to send-only setup. http://www.postfix.org/STANDARD_CONFIGURATION_README.html#null_client 1 /etc/postfix/main.cf: 2 myhostname =…
JKK
  • 311
  • 1
  • 4
  • 15
3
votes
1 answer

Why won't I send an email thru Wordpress when I can send it thru a PHP script?

I've migrated a Wordpress server running version 4.9.8 from Ubuntu to CentOS and emails from Wordpress don't seem to be sending properly. I'm testing sending emails by creating new users associated with various email addresses. I've installed…
Ken J
  • 877
  • 12
  • 21
3
votes
2 answers

Postfix - Rate limit for all domains

My client is a travel agency and has thousands of opted-in emails (no spam). Every week they send a message to all customers once, but I'm having problems with some providers and want to rate limit the entire server, for all outgoing domains. I…
Arvy
  • 1,072
  • 2
  • 16
  • 29