Questions tagged [postfix]

Free and open source mail transfer agent (MTA) that routes and delivers email. When asking about postfix problem, please include the relevant maillog lines and output of the following command: `postconf -n` (non-default content of main.cf) and `postconf -M` (content of master.cf)

Postfix is a mail transfer agent (MTA) that supports IPv6, DNSBL, SMTP AUTH (SASL), TLS and various database backend.

Postfix was written by Wietse Venema in 1997 and first released in December 1998 as IBM Secure Mailer.

It was designed to be highly secure and configurable, and is a drop-in replacement for , with much simpler configuration syntax.

The software was also formerly known as VMailer.

6398 questions
20
votes
3 answers

How do I configure PostFix to allow other machines to send out email through it?

I have PostFix up and running on a CentOS box and would like to send mail from a Windows server on the same network out through the PostFix server. When I try to telnet from the Windows server into port 25 on the PostFix server currently the…
Windows Ninja
  • 2,586
  • 19
  • 46
  • 70
20
votes
6 answers

Minimal setup for sendmail to send outgoing email only?

I run a simple server that I administrate remotely, and I need it to be able to send an email to my personal email address every time an error occurs. With the default setup on Ubuntu, sendmail just accumulates emails in /var/spool/mail that are to…
Michael
  • 321
  • 1
  • 2
  • 8
20
votes
3 answers

Postfix disable local delivery

Is there any form to prevent local delivery on a postfix server? Ideally, I want to avoid local delivery to some domains, because this postfix server is a google apps backup one.
Simon
  • 875
  • 2
  • 12
  • 22
19
votes
2 answers

What does it mean connect to aspmx.l.google.com:25: Network is unreachable?

I have server with RHEL 6 and postfix (postfix-2.6.6-2.2.el6), When I try to send email to Google I'm getting this in /var/logmaillog: postfix/smtp[13414]: 6F4DC10406E7: to=, relay=none, delay=0.16,…
user161834
  • 331
  • 3
  • 6
  • 8
18
votes
4 answers

Postfix, multi domains and multi certs on one IP

I've a postfix server which has multi domains and I want to have a specific cert per each. My server has only one IP. I've found a solution with multi IP, but without I don't know how to do this. Server : Debian 9 Postfix : 3.1.8
DSX
  • 385
  • 1
  • 4
  • 18
18
votes
2 answers

How can I query postfix to test is an address is in the virtual address file?

Is there something I can run from the command line that will let me query postfix (running locally)? if an address is in the virtual address file and, where the mail for that address is routed to. Ex: If I have the email address of tim@domain.com.…
ckliborn
  • 2,778
  • 4
  • 25
  • 37
18
votes
3 answers

How to enforce sender address to be "logged-in-user@example.org" in Postfix?

I have set up a Postfix server with SMTP AUTH (STARTTLS on port 587). All my users are in the domain "example.org". I want to enforce the sender address to be "logged-in-user@example.org". I learned that this can be achieved with the main.cf…
Chris Lercher
  • 4,152
  • 9
  • 35
  • 41
18
votes
1 answer

Configure Postfix to only allow outgoing mail from localhost

How do I configure the Postfix mail submission agent to only allow emails to be sent out from a user on localhost , but allow the Postfix mail transfer agent to receive mail from anywhere?
linus1412
  • 345
  • 2
  • 3
  • 6
18
votes
1 answer

Reinstall postfix on ubuntu with installer

I recently installed postfix but I did something wrong. And so I removed it with sudo apt-get remove postfix and removed the /etc/postfix folder. But now I want to install it again but I don't get the installer prompts where I can choose Internet…
tom
  • 535
  • 2
  • 6
  • 14
17
votes
4 answers

SRS / Sender Rewriting when forwarding mail through postfix

Is there any way to perform SRS, or something similar using Postfix? When I get a mail from user@example.org, I forward it (via a catchall) to something@gmail.com, but GMail is checking SPF, and seeing that my server is not authorized to send mail…
Mikeage
  • 2,741
  • 6
  • 26
  • 37
17
votes
3 answers

Can't receive mails from Gmail

A few days ago Gmail suddenly decided to stop sending mails to my mailserver. I am using Postfix and Dovecot with an paid SSL Certificate running on Debian 7 with everything updated. My mail.log shows the following error: Dec 19 11:09:11 server…
Octfx
  • 283
  • 1
  • 2
  • 7
17
votes
4 answers

How do I change the Envelope From in Postfix?

Linux server that uses Postfix to send mail via Amazon SES. When sending email from Wordpress, the emails are rejected due to an improper Envelope From address. How can I configure Postfix to always use myemail@mydomain.com as the Envelope From…
csi
  • 1,555
  • 7
  • 23
  • 42
17
votes
3 answers

How to collect bounces in postfix

This is related to this question: linux - Ways to get a bounceback report for my newsletter application? - Server Fault Let's say I'm generating email addresses like this when I send out newsletters to identify bounces and unsubscribe them from my…
Brian Armstrong
  • 1,617
  • 3
  • 19
  • 22
17
votes
2 answers

Postfix master.cf versus main.cf

I see a lot of the time that the same settings can be specified in both main.cf, and also in master.cf using the -o prefix. My question is, does one override the other, and if so, which file is given priority if the same setting (with a different…
Dale C. Anderson
  • 587
  • 1
  • 5
  • 13
17
votes
1 answer

How can I configure Postfix to retain copies of all email sent through it?

My company currently uses Google Apps for email. I can configure Google Apps to forward all outgoing email through a relay server. I can also point my MX records at this server and have it forward incoming mail onto Google. Therefore I can…
jamieb
  • 3,427
  • 4
  • 25
  • 36