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
126 votes
6 answers
419k views

Postfix - how to retry delivery of mail in queue?

I have a backup mail server in case of a failure on the main one. In that case of failure, mails come on the backup server and stay there until the main one is back. If I wait some times, the ...
Nicolas's user avatar
  • 1,269
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
85 votes
4 answers
47k views

Automate the installation of postfix on Ubuntu

My system configuration script does an apt-get install -y postfix. Unfortunately the script is halted when the postfix installer displays a configuration screen. Is there a method to force postfix to ...
sutch's user avatar
  • 1,036
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
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
70 votes
10 answers
189k views

How do I check the postfix queue size?

What's the postfix equivalent to sendmail -bp?
Gary Richardson's user avatar
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
54 votes
7 answers
49k views

What are the practical differences between Maildir and Mbox?

Although I understand the basics of the two storage formats (1 file per email under Maildir vs. 1 single file per mailbox under mbox), I am wondering what the practical implications are here - Is one ...
olympe26's user avatar
  • 549
51 votes
6 answers
174k views

Postfix: Recipient address rejected: User unknown in local recipient table

When I try to send an email on my postfix server to an address on the same domain (for example, if the server hostname is mail.example.com and I try to send an email to [email protected]), I get the ...
Tai Squared's user avatar
51 votes
2 answers
90k views

How can I see the contents of the mail whose ID I get from postfix's mailq command?

I used mailq command and I got a line like for example: A705238B4C 603953 Wed May 23 11:09:58 [email protected] So, now I'm wondering is there a way where I can "read" an actual content of the ...
Nikola's user avatar
  • 877
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
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
43 votes
3 answers
194k views

Postfix: "Connection timed out" on all outbound email [closed]

I've been attempting to setup mailing lists with GNU Mailman but it's been a complete disaster with tons of road blocks. Postfix is able to receive email but not send it back out at all, I've peeked ...
APott's user avatar
  • 541
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
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
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
36 votes
2 answers
14k views

Postfix TLS over SMTP - RCPT TO prompts renegotiation then 554 5.5.1 Error: no valid recipients

I've setup ispconfig3 on my debian six server, and here is a little smtp over ssl: The server is postfix AUTH PLAIN (LOL!) 235 2.7.0 Authentication successful MAIL FROM: [email protected] 250 2.1.0 Ok ...
lol's user avatar
  • 475
36 votes
4 answers
111k views

SASL LOGIN authentication failed: UGFzc3dvcmQ6 - Find the username

First let me state that the mail server is working fine and users can connect and send email. Basically there is a local web script connecting into the mail server trying to send mail every few ...
Ryaner's user avatar
  • 3,107
36 votes
5 answers
48k views

Send mail from Docker container with host's Postfix

I am running an Ubuntu 14.04 (Linux) server. I have installed and configured Postfix and OpenDKIM very nicely on the server; I can send emails to myself with commands such as echo hi | sendmail root, ...
David Grayson's user avatar
35 votes
3 answers
96k views

POSTFIX fatal: no SASL authentication mechanisms

I am struggling with the error above for more than 5 hours. I had tried to remove Postfix completely and I had followed the instructions of the next manual and the SASL manual in order to reinstall it....
user2979757's user avatar
34 votes
2 answers
7k views

Sending malicious email as a test

I have set up a working SMTP relay together with MailScanner. This SMTP relay is not — and will not be — able to relay email from the outside, only local email. Is it possible to send a ...
Orphans's user avatar
  • 1,434
34 votes
2 answers
40k views

Can postfix be set up to forward mail to multiple recipients

I have the following postfix virtual file: [email protected] [email protected] This correctly forwards all emails to [email protected] to [email protected] However I would like to forward these emails to bob2@me....
Sam Saffron's user avatar
  • 2,009
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
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
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
32 votes
3 answers
60k views

How should I test Clam Anti-Virus?

I have setup a new email server and now I need to test that Clam Antivirus is scanning messages correctly. How should I do this in a safe and controlled way?
karthick's user avatar
  • 713
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
31 votes
3 answers
79k views

Forcing encryption for outgoing SMTP with Postfix

Does anyone know how to tell Postfix to encrypt outgoing mail? I have configured it to use encryption on reception, but I'm unable to do it with the outgoing mail. This is my main.cf file: ...
Simon's user avatar
  • 905
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
27 votes
3 answers
36k views

How to redirect all postfix emails to one external email address?

To create a test email server, I have a similar requirement as: How to redirect all outgoing email from postfix to a single address for testing But I need to send all the emails to an external ...
user43856's user avatar
  • 271
26 votes
4 answers
138k views

Fixing My MTA's Poor Reputation

I have a web site that needs to send email to customers to deliver files that they have purchased. Reliable email delivery is vital to this business. Unfortunately, most of the emails sent by my ...
Alex Reisner's user avatar
26 votes
2 answers
21k views

Virtual Domains with Postfix and SSL

I've got a Postfix mail server setup for hosting multiple virtual domains (say xxx.com and yyy.com). Users configure their outgoing mail server as mail.xxx.com and mail.yyy.com. All mail servers ...
nimrodm's user avatar
  • 363
25 votes
5 answers
166k views

Postfix Temporary lookup failure

I am trying to set up postfix, but I get a "Temporary lookup failure" error main.cf: inet_protocols = ipv4 inet_interfaces = all queue_directory = /var/spool/postfix command_directory = /usr/sbin ...
dzervas's user avatar
  • 363
24 votes
12 answers
27k views

Fail2Ban: already banned?

I have Fail2Ban running on my Centos Server. (Config below) In my var/log/messages I noticed something really weird: Jun 19 12:09:32 localhost fail2ban.actions: INFO [postfix] 114.43.245.205 ...
3und80's user avatar
  • 353
23 votes
3 answers
6k views

Is an IPv6-only MTA possible yet?

Has anyone had tried to run an IPv6-only SMTP engine? Pretty much everybody with any sense has IPv6 configured for major front-end servers. I was curious if anyone had tried to run an IPv6-only MTA ...
joe's user avatar
  • 233
23 votes
4 answers
39k views

Postfix : error: unsupported dictionary type: mysql

I've a problem w/ postfix problem: # tail -f /var/log/mail.err Aug 20 17:57:50 myserver postfix/smtpd[8243]: error: unsupported dictionary type: mysql Aug 20 17:57:50 myserver postfix/smtpd[8243]: ...
flavio.troja's user avatar
23 votes
3 answers
25k views

Postfix smtps and submission confusion

I've setup postfix so that email clients use port 465 (smtps) for outbound mail. I'm not really understanding the difference between smtps (port 465) and submission (port 587) What's the 'best ...
Aditya K's user avatar
  • 933
23 votes
1 answer
28k views

t-online.de blacklist "host refused to talk to me" (BL)

I got following error message for several days, as my server tried to send a message to an emailadress at t-online.de: host mx02.t-online.de[194.25.134.9] refused to talk to me: 554 IP=xx.xx.xx.xx - ...
Daniel Marschall's user avatar
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
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
22 votes
1 answer
24k views

How read mail from /var/spool/postfix/deferred?

Is there a way to read deffered mail from /var/spool/postfix/deferred. I tried to copy file to my mail directory and see it from webmail but it dosnt work. When im using less or cat it seems like ...
B14D3's user avatar
  • 5,278
21 votes
3 answers
74k views

How do I change postfix configuration after installing it?

During the postfix installation and configuration, I was presented with a few options on how to send and receive email. I might have chosen the wrong option. How do I go back to that configuration ...
Thierry Lam's user avatar
  • 6,321
21 votes
8 answers
19k views

Can't change OpenDKIM socket in Debian stretch in /etc/default/opendkim

I am trying to set up opendkim on Debian stretch but I fail at changing the socket. I want to change the socket to /var/spool/postfix/opendkim/opendkim.sock so I can use it with postfix. I have added ...
lw1.at's user avatar
  • 691
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
3k views

Is it good practice or too draconian to reject mails from mailservers with no RDNS

I've recently dropped SpamAssassin and am now basing spam rejection on DNSRBL's, grey-listing and other basic tests and I'm wondering whether I should also block hosts that don't have a valid RDNS ...
Peter White's user avatar
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
21 votes
3 answers
100k views

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 ...
Windows Ninja's user avatar
21 votes
1 answer
29k views

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's user avatar
  • 375
21 votes
6 answers
19k views

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 ...
Michael's user avatar
  • 331
20 votes
2 answers
10k views

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 ...
Dale C. Anderson's user avatar

1
2 3 4 5
132