Skip to main content

Questions tagged [postfix]

Postfix is a free and open-source mail transfer agent (also "MTA"), written in 1997 and still actively developed.

Filter by
Sorted by
Tagged with
33 votes
2 answers
24k views

Why use both Dovecot and Postfix?

Just out of curiosity, there are dozens / hundreds of tutorials helping you setup a dovecot - postfix mail server. On the surface, both of them are email servers, why use both? Mail servers are ...
Alan's user avatar
  • 525
19 votes
3 answers
107k views

how do I change postfix port from 25 to 587?

I am total noob about Unix and CLI. after googling for almost 6 hours I came to know I should be editing postfix port from 25 to 587 for PHP mail() function to work. and here is the solution I got ...
Ibrahim Azhar Armar's user avatar
18 votes
1 answer
18k views

The simplest way to set up a secure, IMAP, email server? [closed]

I would like to get rid of Google as an email provider, and set up a complete email solution on my dedicated server. The issue: I wish the setup to be as simple as possible, so that it wouldn’t be a ...
Diti's user avatar
  • 297
16 votes
2 answers
17k views

In postfix, how could I disable incoming mail?

I would like to be able to send mail to remote servers, from scripts running on my VPS via SMTP, but otherwise reject all incoming mail with postfix on Debian squeeze. (And in general disable any ...
n611x007's user avatar
  • 6,416
16 votes
3 answers
11k views

Postfix: unlimited per-user addresses via "+" sign

Gmail users can get virtually unlimited email addresses by using [email protected] ("plus addressing"). I'd like to have that for my own mail server, which is running Postfix. The mailbox and ...
cweiske's user avatar
  • 1,997
16 votes
9 answers
38k views

Just want to send emails from my Ubuntu Server. What simple SMTP server solution to use? [closed]

Basically I have a Ubuntu Server machine and I would like an idiot-proof solution for sending emails from my website that is also running in this same machine. My doubts are: 1) Should I use postfix ...
TraderJoeChicago's user avatar
14 votes
3 answers
14k views

Postfix: forwarding e-mail to GMail not working

On my (web server) machine, I just want to be able to send and receive e-mail, and have e-mail addressed to particular addresses forwarded to my GMail inbox. Right now, I have installed postfix and ...
rix0rrr's user avatar
  • 841
13 votes
6 answers
52k views

Monitor Postfix outgoing mail delivery

I'm using GNU Mailman with Postfix to run a mailing list, and would like to monitor the delivery of outgoing mail, that is: for each mail sent from the list, check whether a 250 (OK) message was ...
Tastalian's user avatar
  • 233
12 votes
3 answers
43k views

Changing default from e-mail address for system accounts when using sendmail

I would like certain system accounts (root and www-data) to have the header From: Example Company <[email protected]> when e-mail is sent using either the mail or sendmail commands, or from ...
DanielGibbs's user avatar
12 votes
4 answers
3k views

What is the best MTA setup for a home/laptop computer (*not* server)?

What is a good MTA (e.g. Postfix or something else) setup for a home computer behind a NAT, or a laptop that is not always online? I've read a lot of Postfix tutorials on how to set it up this way or ...
thomasrutter's user avatar
  • 1,957
11 votes
4 answers
59k views

How to send email with attachment by postfix from command-line?

I've just setup a new Ubuntu 10.04 LTS server on linode for myself. Followed an excellent instruction at: here to finish the installation of some basic stuff including postfix. I am trying to figure ...
Michael Mao's user avatar
11 votes
4 answers
30k views

Make postfix reject incoming email spoofed as from my own domain

I have a postfix server correctly configured to allow incoming mail to my domain, and to require authentication in order to send mail to any other network. A lot of spam that I get has a forged "from"...
dataless's user avatar
  • 723
10 votes
5 answers
4k views

What all is required for email from my server to pass through spam filters?

I have a serverbeach server with postfix installed. The hostname is something like p3204059.pubip.serverbeach.com The FQDN is specified as NONE for the server itself. I clicked change ptr record, ...
BreezyChick89's user avatar
9 votes
3 answers
17k views

Regex multiple catch-all setup in postfix

I need to setup a regex catch-all function on postfix such that: tom.(anything)@domain.com goes to [email protected] phil.(anything)@domain.com goes to [email protected] How can this be achieved in postfix?...
thevikas's user avatar
  • 361
9 votes
1 answer
31k views

NOQUEUE: reject: Relay access denied

I recently setup a mail server following the instructions on linode.com (https://library.linode.com/email/postfix/postfix2.9.6-dovecot2.0.19-mysql) except I am using postgreSQL instead of mySQL. ...
drewag's user avatar
  • 311
8 votes
2 answers
3k views

How do I enable DKIM for bounce messages in Postfix

I have set up a linux email server with Postfix and have correctly set up SPF and DKIM. When I send an email, the email is signed properly, and when I view the source from the receiving client (such ...
Stephen S's user avatar
  • 618
7 votes
3 answers
86k views

Postfix error: Host or domain name not found

I am using Raspbian and the Postfix (version 2.9.6) service seems to be automatically run when I boot, but if I want to send a mail, the email stays in the queue: $ mailq 26CB72201F 443 Sat Sep 19 ...
clemtoy's user avatar
  • 359
7 votes
1 answer
5k views

Postfix Relay Based on Recepient

What is the best practice when one has to implement this sort of ruleset in postfix: Email sent to [email protected], [email protected], etc ought to be relayed to smtp.a.example.com. Email sent to everyone ...
Chris Smith's user avatar
6 votes
3 answers
6k views

read localhost e-mail with thunderbird

What would be simplest IMAP server allow Thunderbird to read messages to user@localhost for Ubuntu Linux? My assumption was that if mailutils could read mail with the "mail" command then IMAP or POP ...
Thufir's user avatar
  • 1,650
6 votes
1 answer
5k views

Don't deliver mail to certain addresses

I have a Postfix 2.10.1 running on CentOS 7. This service will deliver email notifications that are sent to the postfix via SMTP. Now, some users should not get those notifications. Since the sending ...
rollstuhlfahrer's user avatar
6 votes
2 answers
6k views

Mixing virtual forwards and virtual mailboxes in postfix

I am setting up a postfix server. The first thing I tried was to deliver mail to virtual mailboxes: main.cf [..] virtual_mailbox_domains = /etc/postfix/virtual_domains virtual_mailbox_base = /var/...
Jasper's user avatar
  • 246
6 votes
2 answers
2k views

Easiest way to send mail from Linux Server

I want my server to send me email alerts every time it does things such as run a backup. I have tried to setup programs like Sendmail, Postfix, etc on my Ubuntu Server box and it is really a pain for ...
QAH's user avatar
  • 325
6 votes
3 answers
3k views

Configure Postfix to reject mails with invalid DKIM signature

I have configured Postfix to sign my mails using OpenDKIM. (I followed this tutorial.) Now I would like to configure Postfix to reject mails for domains that have DKIM configured and the mail lacks a ...
Gene Vincent's user avatar
6 votes
0 answers
2k views

Connection timing out when connecting to Milter service [closed]

I'm using a VPS with CentOS 5, containing Postfix and OpenDKIM. I have set up OpenDKIM using this guide. Everything seems to work properly as the log in /var/log/maillog does not report anything other ...
user1640348's user avatar
5 votes
3 answers
9k views

Debian sendmail Cannot write

I had a working sendmail configuration on my debian server, i tried to put a postfix to receive email but abandoned, remove postfix, re install sendmail but nothing work anymore :( here is my mail....
Nicolas Beauvais's user avatar
5 votes
1 answer
15k views

Fatal error (bad field count) while configuring Postfix

I'm using this tutorial to configure a mail server using postfix, dovecot and mysql. While configuring Postfix I have to uncomment the following lines and then restart Postfix with service postfix ...
narzero's user avatar
  • 419
5 votes
2 answers
20k views

Postfix not delivering messages (554 Client host rejected: Access denied)

Messages from localhost is working normally, but when I try to send mail from i.e. gmail to my domain (as in virtual domain mapping) postfix is denying it with error (554 5.7.1 : Client host rejected: ...
lohis's user avatar
  • 51
5 votes
2 answers
5k views

Postfix TLS configuration

I am in the middle of setting up a postfix server on Arch Linux. It seems to be working ok so far - I can successfully speak to it via telnet localhost 25. However, when I try to connect using openssl'...
lvc's user avatar
  • 193
5 votes
2 answers
18k views

postfix - warning: connect to transport private/smtp: Connection refused

I have been having trouble with my postfix+dovecot mailserver. Every time I try to send an email to a different server (gmail etc.) I get the following messages in the log: postfix/qmgr[28918]: ...
sammko's user avatar
  • 301
5 votes
1 answer
14k views

What permissions on /var/mail directory?

I've been suffering a permission problem in Postfix/Dovecot for a couple of days now. The setup is using virtual domains and users, so the path to user's home is /var/mail/<domain>/<user>; ...
jww's user avatar
  • 12.2k
4 votes
3 answers
50k views

Example of fail2ban configuration to ban servers spamming my postfix server?

I have a small mail server at home and quite a restrictive filtering rules. I use logwatch and could see that 80 to 90% connections are rejected by my restrictive filtering rules. Most rejection ...
chmike's user avatar
  • 487
4 votes
3 answers
4k views

Using supervisord to control the postfix MTA

I am trying to use supervisord to control postfix. The usual method is to specify a command which starts the daemon, I use postfix -c /etc/postfix start. The postfix man page says that to stop you ...
alephnull's user avatar
  • 161
4 votes
1 answer
10k views

Postfix: relay mail to smart host for specifc users

Currently i have a VPS that has a host of email accounts on for several domains. most are simple and have all local mailboxes. but i have one user that wants to have a hosted exchange account but ...
Steve Taylor's user avatar
4 votes
1 answer
8k views

Postfix: SMTP, use port 587 rather than 465

I have set up a mail server on AWS EC2 using the instructions from Flurdy: http://flurdy.com/docs/postfix/ it has mostly gone well. My issue is that I would prefer to use SMTP port 587 with TLS ...
Wairowe's user avatar
  • 41
4 votes
1 answer
3k views

Sending Emails within a Docker Container

Hello I'm trying to run the following command in my container mail -s "This is Subject" [email protected] < /path/to/file How should my dockerfile look so the above command can be executed ? I ...
Montassar Dridi's user avatar
4 votes
1 answer
3k views

How to set up Postfix to save the message body in the log file?

I need all the body of incoming and outgoing messages are written to the log file. How to setup Postfix to do that?
Ivan Denisovich's user avatar
4 votes
1 answer
2k views

Delivering emails for one user from two domains into a single mailbox in Postfix+Dovecot

I am setting up a mail server using Postfix+Dovecot on RHEL7. Though it is not required, I would like to set it up such that the mail server is able of hosting multiple domains. The problem that ...
Nik O'Lai's user avatar
  • 181
4 votes
0 answers
597 views

dovecot WILDCARD SSL (certicate.crt, private.key, intermediate.crt) not working

I have installed dovecot and postfix and got it working, but when I change the ssl_cert_file, ssl_key_file and ssl_ca_file dovecot configuration to my wildcard SSL certificate (working on Apache) it ...
m_junior's user avatar
  • 141
4 votes
1 answer
4k views

Ubuntu Postfix Error: timeout exceeded (in reply to end of DATA command)

I have Ubuntu box behind the router (Asus RT-N13U), port 25 is forwarded to box from router via VirtualServer feature on router. The problem is that some clients (here host.ru) can't deliver mail to ...
user190395's user avatar
3 votes
3 answers
5k views

Is it possible to queue a message by writing it to file?

I'm wondering if it's possible to create mail messages and put them into the postfix queue simply by writing files to the hard drive. Currently I have a script which uses a socket connection to dump ...
Kyle Buser's user avatar
3 votes
1 answer
18k views

How to get `mail` on a CentOS 6 server (running postfix)

On my old server, and most other devices I have run, there is a provided mail program. On my new CentOS 6 server, running postfix as the MTA, I cannot send command-line email via mail - the tool is ...
warren's user avatar
  • 10.2k
3 votes
1 answer
4k views

SPF type ptr discouraged? Then what should I use?

I'm trying to setup a mail server and then on mxtoolbox.com I was told: Your domain's SPF record includes a sender mechanism type of PTR. The use of this mechanism is heavily discouraged per ...
Christopher Thomas's user avatar
3 votes
1 answer
18k views

Postfix Relay Access Denied When Sending To Gmail With Telnet

I have postfix and dovecot setup to deal with mail for my domain. imap appears to work ok when reading local mail but when i try to send an email using telnet with localhost and the smtp port it gives ...
Dan Hastings's user avatar
3 votes
3 answers
3k views

Terminal mail delivery delay in Mac OS X

I'm using mail from the Mac OS X terminal to send the results of a database query to me via email. Most of the time it works, but sometimes there is a long delay before the mail arrives (often when ...
cmaughan's user avatar
  • 145
3 votes
1 answer
2k views

Does a cert's filename matter?

Our product is running postfix and nginx as docker services. We initially deploy with a self-signed cert that is named <our-company>.com.cert along with a .pem and .key. These are mounted as a ...
thejames42's user avatar
3 votes
1 answer
5k views

use postfix with ssl certificate that has a password

i have gone through a couple of tutorials on how to set up postfix on ubuntu with support for my ssl certificate: https://help.ubuntu.com/community/Postfix http://www.projektfarm.com/en/support/howto/...
mulllhausen's user avatar
3 votes
1 answer
3k views

postfix how to see what the $default* values are

In my post fix configuration files I keep finding options / settings like these var = $default_values option = $default_values For example this is out put form a grep I ran. /conf/main.cf....
nelaaro's user avatar
  • 13.7k
3 votes
1 answer
2k views

Adding custom schema to openldap

I want to setup my postfix with ldap authentication. I follow this tutorial https://blog.tnyc.me/postfix-with-ldap I need to setup a PostfixBookMailAccount but therefore i need to load that schema. I ...
Pascal's user avatar
  • 201
3 votes
1 answer
5k views

Mail forwarding: Do I need to concern myself with the SPF fail header from Google?

I'm using a Postfix mail server to forward personal mails from an EC2 instance to a Gmail account. To prevent Google from considdering me a source of spam I have set up all the ...
Mats's user avatar
  • 133
3 votes
1 answer
145 views

attack via executable line after plus sign in email address

I operate my own mail server and from time to time, people send spam or mysterious stuff to the root account. Recently, I got an empty mail, which was addressed to: root+${run{x2Fbinx2Fsht-...
Ilka's user avatar
  • 43

1
2 3 4 5
10