Skip to main content

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)

Filter by
Sorted by
Tagged with
31 votes
4 answers
61k views

How to configure postfix to pipe all incoming email to a script?

Using postfix, I'd like all incoming mail, to any address (including those that don't map to local users) to be piped to a script. I've tried configuring mailbox_command in /etc/postfix/main.cf: ...
user67641's user avatar
  • 1,302
69 votes
6 answers
133k views

Forcing the from address when postfix relays over smtp

I'm trying to get email reports from our AWS EC2 instances. We're using Exchange Online (part of Microsoft Online Services). I've setup a user account specifically for SMTP relaying, and I've setup ...
John Whitlock's user avatar
40 votes
8 answers
34k views

Why Does hotmail still reject my emails?

I have a very strange problem with my emails being marked as spam by hotmail. I just have configured Postfix + Dovecot on my server and all works perfectly. I can Send/Receive emails. I only have ...
Dail's user avatar
  • 649
73 votes
7 answers
496k views

How to correct Postfix' 'Relay Access Denied'?

This morning, in order to correct a problem with a name mismatch in the security certificate, I followed the recommended steps from How to fix mail server SSL?, but now, when attempting to send an ...
Noah Goodrich's user avatar
22 votes
5 answers
66k views

How to make Postfix use another IP address?

I'm using the Postfix mail server and I have 6 IPs available. I'd like to use another IP for the Postfix mail server for sending mail than the web server uses. How can I do this? My postfix version ...
aardbol's user avatar
  • 1,483
17 votes
3 answers
49k views

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 ...
Brian Armstrong's user avatar
47 votes
5 answers
51k views

"No worthy mechs found" when trying to relay email to Gmail using Postfix

I've been trying to configure email to forward to Gmail, using Postfix to relay email to smtp.gmail.com. However, I'm failing to get it to authenticate with smtp.gmail.com, which is a rather vital ...
gsnedders's user avatar
  • 1,271
33 votes
2 answers
37k views

Confused about alias_maps and virtual_alias_maps

I have already re-read the docs on this as well as other posts here and this is still very unclear to me. I have been testing various things to understand the difference between alias_maps and ...
Neel's user avatar
  • 1,481
18 votes
3 answers
18k views

How to enforce sender address to be "[email protected]" 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 "[email protected]". I learned ...
Chris Lercher's user avatar
42 votes
4 answers
36k views

DKIM sign outgoing mail from any domain (with Postfix and Ubuntu)

I got DKIM setup on my mail server (postfix and ubuntu) so it signs outgoing emails. I used these instructions: https://help.ubuntu.com/community/Postfix/DKIM However, I need it to sign emails from ...
Brian Armstrong's user avatar
34 votes
1 answer
36k views

What's the difference between postfix/smtp and postfix/smtpd

A bit confused when reading through the logs of my smtp/mail server, I'm turning this questions to you guys. In the maillog files I'm seeing entries for postfix/smtp as well as postfix/smtpd. I can ...
Edwin Krause's user avatar
21 votes
3 answers
41k views

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's user avatar
  • 905
21 votes
5 answers
31k views

Remove/hide client sender ip from postfix?

I'm trying to hide the client IP from emails sent from postfix. here is an example of what I mean: Received: from mail.[removed].com (adsl-75-37-61-254.dsl.frs2ca.sbcglobal.net [75.37.61.254]) (...
Kyle's user avatar
  • 361
16 votes
4 answers
25k views

Postfix: how to use simple file for SASL authentication?

I'd like to run Postfix on a Debian VPS to send e-mails from my application. The application (running on other VPSes) would connect to Postfix via SMTP. Postfix does not have to handle incoming email; ...
Jonathan's user avatar
  • 411
14 votes
4 answers
38k views

Block outgoing mail to specific address using Postfix

How could I block outgoing mail to a specific address using Postfix? I've partially managed to block outgoing e-mail using header_checks. However, header_checks doesn’t cover BCC. I also tested ...
Maikel's user avatar
  • 313
12 votes
3 answers
76k views

mail loops back to myself | postfix

Hi I have an issue with bounced mail it does not happen all the time but at the same time is very frequent. Most of the time if I send an email to an address that does not exist then i get a bounce ...
Alistair Prestidge's user avatar
10 votes
1 answer
24k views

postfix multiple IP SMTP banner

I've installed postfix 2.11.3 and we have multiple IP addresses on our server which we want to host two domains, isolated and running on their own IPs. domain1 unix - - n - - ...
Satish's user avatar
  • 672
9 votes
6 answers
20k views

postfix fails to send mail with "fatal: unknown service: smtp/tcp"

I have installed postfix, and when I tried to send a mail to gmail it told me that it has been sent, but when I checked my inbox in Gmail I didn't saw it. This is how the connection looked like: $ ...
LessComplexity's user avatar
9 votes
1 answer
40k views

Configure Postfix to send/relay emails Gmail (smtp.gmail.com) via port 587

Using Centos 5.4, with Postfix. I can do a mail [email protected] subject: blah test . Cc: and the msg gets sent to gmail, but it resides in the spam folder, which is to be expected. My goal is to ...
tom smith's user avatar
  • 461
33 votes
7 answers
57k views

postfix - how do you redirect all emails to one user, eg *@example.com → [email protected]

I'm using postfix for my email. I know I can use /etc/aliases and newaliases command to redirect certain email, eg I can redirect [email protected] to [email protected] by putting root: user in my /etc/...
Amandasaurus's user avatar
  • 32.5k
23 votes
7 answers
28k views

Postfix aliases and duplicate e-mails, how to fix?

I have aliases set up in postfix, such as the following: [email protected]: [email protected], [email protected] ... When an email is sent to [email protected], and any of the recipients in that ...
Marcus Stade's user avatar
19 votes
1 answer
24k views

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 ...
jamieb's user avatar
  • 3,447
11 votes
5 answers
12k views

Relay host based on destination MX record

I wish to set up Postfix to use an external relay depending on the destination hostname, ie: If destination hostname is *.outlook.com, use relay some_smtp.example.com If any other destination ...
BinaryDeuce's user avatar
11 votes
4 answers
28k views

Postfix check outgoing mail for spam

How can I force postfix to check (and log/flag/etc) all outgoing mail for spam? Just want to make sure I'm doing my part on my servers. EDIT: Postfix config, as requested. main.cf # See /usr/share/...
Glen Solsberry's user avatar
9 votes
1 answer
41k views

Postfix to relay mails to other SMTP for particular domain

Have an SMTP server setup running in postfix, only for sending mails . Now the requirement is i want to relay mails for particular domain to end user through other SMTP , without disturbing default ...
Sivaguru Nathan's user avatar
8 votes
3 answers
16k views

Why does Postfix deliver mails locally instead of relaying them to Google Apps?

I get the following error trying to send an email to my Google Apps Email at [email protected] from my Postfix server. to=, relay=local, delay=0.09, delays=0.07/0/0/0.02, dsn=5.1.1, status=bounced ...
Ivo Sabev's user avatar
  • 187
6 votes
2 answers
1k views

How do I get Postfix to deliver ALL mail to a custom script?

I am trying to configure postfix so that ALL mail that arrives (to any domain) is piped into a shell script that I have. I have tried several things, including setting mailbox_command = ...
Francis Rath's user avatar
6 votes
2 answers
14k views

Postfix REJECT (not BOUNCE) unknown virtual aliases

We run a small postfix (and dovecot) mail server for a number of hosted domains, using virtual alias maps and with spamassassin configured. Recently it's become apparent that we're generating some ...
Dave's user avatar
  • 355
5 votes
1 answer
14k views

postfix header_checks using regexp proper setup

I just can't seem to figure out why header_checks are not being evaluated. I'm on Ubuntu 12.04, postfix 2.7, dovecote, spamassasin, clamav, amavis. I add following line to /etc/postfix/main.cf : ...
WJR's user avatar
  • 341
4 votes
1 answer
5k views

How can I set up Postfix so that all email sent on my dev box gets routed to the developer email group?

I have a development server, and at the moment email is disabled on it, so we can do whatever we need to with the system without worrying about accidentally emailing clients' customers. I'd like to ...
Dave Child's user avatar
3 votes
2 answers
5k views

Use different relay in postfix

In our application, we send different kind of mails. On a broad view we can generalize it in two category, Mails which monitor the health of the app. Mails which we send to end user. Is there any ...
Souman Mandal's user avatar
2 votes
2 answers
723 views

postfix relay based on origin

I have 4 servers. prod1.example.com, prod2.example.com, dev1.example.com, and dev2.example.com. They all send their mails to smtp.example.com. This server does the relay. Now I want that dev1 and dev2 ...
Marco's user avatar
  • 172
1 vote
1 answer
862 views

How can I prevent Postfix from accepting mail from domains it owns, that it didn’t send?

I have Postfix configured with a few domains, delivering to Dovecot locally. I’ve noticed some interesting spam that comes in, purporting to be from an address at one of those domains, but that ...
Abraham Vegh's user avatar
  • 1,045
1 vote
1 answer
2k views

Postfix forwards to Gmail being rate limited even with unmodified headers

I've installed Postfix on Ubuntu 14.04 with the defaults. I then configured some virtual aliases to forward email from a few addresses to various personal (mostly Gmail) accounts. This is just to make ...
David Rahrer's user avatar
121 votes
1 answer
192k views

What ports to open for mail server?

I have just finished setting up a Postfix mail server on a linux (ubuntu) platform. I have it sending and receiving email and it is not an open relay. It also supports secure smtp and imap. Now this ...
radman's user avatar
  • 1,711
78 votes
5 answers
111k views

Is Postfix the same thing as Sendmail?

I have Postfix setup on my server so that I can send outgoing mail using the command-line: mail -s "Subject" [email protected] Is this using Sendmail or Postfix ? Is "Sendmail" just a software ...
Xeoncross's user avatar
  • 4,609
45 votes
2 answers
48k views

Understanding a Postfix log file entry

We have a Postfix hub and I'm trying to better understand the information in the mail.log file. I use tools like qshape, pflogsumm.pl and amavis-logwatch to summarize the log files, but I have still ...
KodeTitan's user avatar
  • 901
38 votes
5 answers
107k views

Changing the maximum mail size in Postfix

When sending large email to a new CentOS6 server running Postfix as the MTA, the following message is returned: tried to deliver your message, but it was rejected by the recipient domain. We ...
warren's user avatar
  • 18.9k
28 votes
5 answers
135k views

Postfix - Host or domain not found

I've just installed Postfix on my Ubuntu, on a local network. On this network, I have an Exchange Server (using domain mail.example.com). I had a problem sending an email to a local address: adress@...
Vincent LITUR's user avatar
18 votes
5 answers
44k views

Dovecot user lookup fails when using username@domain format

I have Dovecot v2.0.11 installed on a FreeBSD server and the user lookups for incoming email addresses are failing, but lookups for system users is successful. Dovecot is setup to use system users, ...
cigarman's user avatar
  • 283
15 votes
6 answers
50k views

How to build a high availability Postfix system?

I'm needing to set up a remote mirror for a postfix server (where the content of both mail servers should be the same at any time). The idea is that if the main server comes down at some point the ...
VanHackman's user avatar
14 votes
2 answers
19k views

When does Postfix use IPv6 and when IPv4?

I've configured my mail server for IPv6 and IPv4 but in the most cases it uses IPv4 while IPv6 is available on the remote host. I use Postfix in version 2.9. So my thought was that postfix uses IPv6 ...
nazco's user avatar
  • 397
14 votes
3 answers
22k views

How to redirect all outgoing email from postfix to a single address for testing

I am setting up a testing server for a web based application that sends some email notifications. Sometimes testing is performed with real customer data, and for that reason I need to guarantee that ...
0x6A75616E's user avatar
13 votes
3 answers
67k views

Configuring outgoing mail to port 587 on Ubuntu/Postfix

I'm configuring a backup server on a local network that has a cable connection. The Cable ISP is filtering all port 25 (smtp) traffic. uname -a Linux myhost 4.4.0-119-generic #143-Ubuntu SMP Mon ...
S.ov's user avatar
  • 411
12 votes
5 answers
16k views

Outgoing only SMTP server

I want to setup an outgoing only SMTP server on Debian, so my Web-applications will be able to send e-mails via it. I don't want to use another hosts because of security and customizability of my own ...
Daniel O'Hara's user avatar
12 votes
2 answers
14k views

How to redirect all mail from one domain to another in Postfix?

I have two forms of the same domain name, one being a common misspelling of the other, let's say tedswidgets.com and tedswigets.com. I'd like to redirect all mail for <someone>@tedswigets.com to ...
thomasrutter's user avatar
  • 2,606
11 votes
1 answer
15k views

"unsupported dictionary type: pcre" postfix header_checks

I have the following header_checks in place on Postfix /^Received:/ IGNORE /^X-Originating-IP:/ IGNORE /^X-Mailer:/ IGNORE /Message-Id:\s+<(.*?)@www.mainserver.com>/ REPLACE ...
Toodarday's user avatar
  • 245
8 votes
1 answer
38k views

postfix: relay access denied. How to fix it?

I've been fiddling with main.cf file for a long time but still couldn't find why. I've set up an email server with this tutorial Email with Postfix, Dovecot and MariaDB on CentOS 7 This is the part ...
Searene's user avatar
  • 321
7 votes
1 answer
18k views

Postfix/Dovecot - Multiple Domains and Multiple Linux Accounts

I have been trying to setup a new mail server to migrate from my VPS, as my host has decided to close its doors. The old server was running Exim/Courier (nearly a decade old at this point,) and I'm ...
Mookman288's user avatar
7 votes
3 answers
19k views

Add email account to postfix

I have add a user in linux called "mailer". I'm only using this user to send outgoing mail, not receive. What do I need to do in order use the following SMTP information to send outgoing mail? $...
Ben's user avatar
  • 3,870

1
2 3 4 5
13