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)
6,537
questions
2
votes
1
answer
100
views
What difference does it make to implement a feature as policy service vs as milter in Postfix?
I am trying to implement MTA using Postfix. I am struck at how to implement standard services like SPF, DKIM etc. as well as some custom services. They can either be implemented as policy delegation ...
0
votes
1
answer
128
views
Postfix rejecting my email from a "Contact Us" form, with "SMTPRecipientsRefused"
I made a "Contact Us" form in Django, and the Django part of it seems to be working. But sending of the email it generates fails with
SMTPRecipientsRefused at /contact/
{'[email protected]'...
4
votes
2
answers
633
views
What is difference between using smtp vs relay transport type in postfix?
I am trying to setup MTA which should submit different intranet mail gateways based on the recipient's domain. For that I thinks transport_maps in postfix should be setup for selective domains; if ...
2
votes
2
answers
182
views
How to restrict based on combined usage of sender email and client ip address in postfix?
I have a MTA (postfix) with sasl implemented. I want that for a subset of users I can map their email address to a particular range of ips (separate for each email user). If a user tries to send email ...
0
votes
1
answer
173
views
postfix as relay - send to non local domain restrict by ip
we are moving from an old symantec messaging gateway to a debian/postfix machine.
rules in symantec are these:
-from local domain to the same, accept from all then relay all to outlook.com server.
-...
0
votes
1
answer
163
views
What does "warning: hostname domain.com does not resolve to address" actually mean?
Variations of this warning show up many times in the Postfix logs:
warning: hostname 107-174-39-133-host.colocrossing.com does not resolve
to address 107.174.39.133: Name or service not known
I'...
-1
votes
1
answer
174
views
How to bypass postfix milters for certain users?
I am trying to set up an incoming MTA server using Postfix. I have specific requirements that some users' emails should not go through the milters. Is there any way this can be done in Postfix? One ...
0
votes
1
answer
205
views
Too many connect from unknown postfix
I am trying to set up an incoming email server by using postfix as MTA the issue I am facing is that there are too many 'connect from unknown' lines in the log. Can anyone help can I debug this issue? ...
0
votes
1
answer
58
views
How can I log when the postfix (for an incoming mail server) enters the stressed condition?
I have a server that I use only for incoming emails it uses Postfix as MTA. I want the postfix logs to indicate when (and if) the MTA enters the stressed mode. I thought about writing a custom bash ...
0
votes
0
answers
86
views
Postfix not signing mail with OpenDKIM
Postfix is not signing outgoing mail with OpenDKIM despite giving no errors.
My main.cf file
readme_directory = /usr/share/doc/postfix
inet_protocols = ipv4
meta_directory = /etc/postfix
...
0
votes
1
answer
98
views
How do I setup Postfix to discard email sent to an alias in a MySQL virtual alias table?
I'm trying to setup Postfix to discard mail when there is an alias record in the MySQL address that forwards the mail to user nobody.
All mail that is sent to [email protected] should be black-...
0
votes
0
answers
30
views
Can I hide aliased email addresses in a Postfix reject message?
[email protected] is an alias for [email protected]. When Postfix rejects a message, it replies with the expanded alias:
<[email protected]>: host smtp.domain.com[xx.xx.xx.xx] said: 550
5.7....
0
votes
0
answers
113
views
Postfix: block email from sender only for certain recipient
I'd like to reject email from senders, but only for certain recipients. Example:
Sender [email protected] is blocked for [email protected].
Sender [email protected] is blocked for [email protected].
...
But all ...
0
votes
1
answer
72
views
Amanda backup software using postfix generates invalid sendmail command line option '-s'
I recently updated postfix on my CentOS 6 server to support a new email relay, and everything is working except my Amanda backup software, which is no longer sending status emails. When I run "...
0
votes
1
answer
67
views
Relay Outgoing Emails Based On Sender Address AND Recipient domain
I am new with postfix and have troubles figuring out some things. Right now my postfix has sender-based config:
[email protected] send.mydomain2ajax.com:25
[email protected] send.mydomain2foo.com:25
...
0
votes
2
answers
83
views
Postfix spuriously checks SPF policy for authenticated, submitting mail clients
I am running Postfix 3.8.1 on Ubuntu 23.10. Postfix serves port 25 for incoming mail from other MTAs and port 587 for authenticated MUAs.
Postfix is supposed to check SPF for mails from other MTAs on ...
1
vote
1
answer
213
views
Configure postfix virtual transport to deliver mail to arbitrary (local) addresses
I'm using Postfix in a very niche application with no inbound or outbound SMTP connectivity (other than via the loopback interface).
I would like to configure the postfix virtual transport to deliver ...
2
votes
1
answer
193
views
Converting access file from sendmail to postfix
I'm looking to convert a two-decade-old highly-configured sendmail installation (currently running on AlmaLinux 9) into postfix. Among the conversions is adapting the existing /etc/mail/access file to ...
0
votes
0
answers
35
views
How to integrate a python script with amavis or spamassasin?
I have an MTA setup with postfix acting as MTA and Amavis acting as content filter; Amavis is configured for using SpamAssassin and Clamav. I have written a Python script that basically analyses an ...
0
votes
0
answers
118
views
Migrate existing Maildir to Dovecot Maildir sub folder
I have an existing Maildir (one file per message) from a backup:
root@host:/var/vmail/myname/cur# ls -lha | head -n 7
total 347M
drwx------ 2 vmail vmail 844K Nov 5 10:15 .
drwxr-xr-x 5 vmail vmail 4....
-1
votes
1
answer
95
views
DKIM *seems* to be used as an open relay. Is this possible?
I'm running postfix with opendkim. My opendkim milter is running on port 10029.
CORRECTION: My opendkim milter is running on a unix socket, and there is a DKIM content filter set up on port 10029.
...
2
votes
1
answer
281
views
What are the correct settings to enable TLS between Postfix and Dovecot via LMTP?
I am trying to get Postfix to forward mail via LMTP to Dovecot. This works fine when TLS is turned off in the settings on both sides.
Once TLS settings are enabled, Postfix connects via LMTP and ...
1
vote
1
answer
73
views
Postfix Dovecot connection with MySQL8 SSL mode disabled
I have a production running installation of Postfix 3.1 and Dovecot. Recently upgraded to a new version of MySQL, passing from 5.6 to 8 hosted in a new server.
The problem now is that postfix and ...
0
votes
0
answers
32
views
How to have different postfix options based upon destination email address
I need to configure postfix in such a way that the options used vary dependent upon the destination email address. For example, I might have destinations such as [email protected], [email protected], user@baz....
2
votes
1
answer
416
views
Postfix: How to log to syslog only?
I have Postfix 3.8.1 on Ubuntu 23.10. How do I configure Postfix to log to syslog only? My syslog daemon is journald.
According to my understand, Postfix should log to syslog, if maillog_file is not ...
0
votes
1
answer
240
views
Postfix and rspamd: Disable bounce email
How do I disable non-delivery notification (bounce mail) in Postfix?
I have setup Postfix 3.8.1 with rspamd 3.6. Spam filtering is working
admin@host123456:~ $ wget http://spamassassin.apache.org/...
0
votes
1
answer
309
views
Postfix service WAS working, after reboot says "Failed to start postfix.service: Unit var.mount is masked."
On this server system we have been offloading the ssd system "disk" of high-write loads for reliability / longevity reasons and following one strategy, we went to a new one and everything ...
0
votes
1
answer
219
views
Postfix: Order of evaluation of `smtpd_client_restrictions`, `smtpd_helo_restrictions`, `smtpd_relay_restrictions` and `smtpd_recipient_restrictions`
In what order does Postfix > 2.10 evaluate the following directives?
smtpd_client_restrictions
smtpd_helo_restrictions
smtpd_relay_restrictions
smtpd_recipient_restrictions
I read Postfix SMTP ...
0
votes
1
answer
152
views
Postfix: Different TLS certificates for each hosted virtual mail domain
I have a single machine with a single Postfix instance which hosts different virtual mail domains.
Is it possible to configure Postfix such that is uses different TLS server certificates (with ...
0
votes
1
answer
48
views
Cannot send e-mail to one account on server
I am responsible for administering a web and mail server which has a number of users with mailboxes which function correctly. I recently added another user as I wanted to set up a separate e-mail ...
0
votes
0
answers
18
views
thunderbird logs in after adding a double domain name
I've spent my last few days migrating my email server to another server location, all my config files are the same etc. But for some reason i keep getting weird issue's on the new server.
I'd like to ...
0
votes
1
answer
172
views
Does LMTP support authentication?
Scenario:
A Postfix Server runs on a VPS with a hosting company.
A Dovecot IMAP server runs inside the office.
We want Postfix to push mail it receives to the Dovecot IMAP server, using the least ...
0
votes
0
answers
153
views
PAM failing to authenticate all users from one domain in dovecot
I have installed a mail server using Dovecot + Postfix, and it always worked correctly.
Recently I installed a new domain example.com and a user [email protected] for that domain in the mailserver ...
0
votes
0
answers
119
views
Postfix - limit outgoing messages sent by one specific user
I want to limit outgoing messages to 5 per hour for a single user. It should then queue any additional messages during that hour to be attempted for delivery later. All other users should not be ...
0
votes
0
answers
97
views
Postfix Trigger script when E-Mail was Sent
This is my first Post at serverfault.
I hope someone can help me.
My setup looks like this:
I have a RabbitMQ where emails are queued.
I've written a small Python tool that retrieves one email at a ...
0
votes
1
answer
198
views
Postfix / sasldb : "authentication failure"
I'm not a postfix expert... I'm having an authentication problem with posfix 3.5 on debian 11.8.
I've added a test user :
# saslpasswd2 -c test
Password: test
Using swaks to test authentication to ...
0
votes
1
answer
166
views
Postfix seems to be running and listening on the public network interface, but external clients cannot connect?
I'm setting up a new Postifx server on Debian 12. I've installed the Debian package and confirmed that Postfix is running, and is listening on ports 25,465, and 587.
Postfix is running and there are ...
0
votes
1
answer
115
views
Where do I find the LDAP scheme for Postifx or which alternative should I use?
The howto https://www.postfix.org/LDAP_README.html describes LDAP object with
object classes
virtualaccount
ldapgroup
ldapuser
attributes
mail
memberdn
memberaddr
maildrop
Where do I find the ...
0
votes
0
answers
145
views
DMARC and Postfix delivery reports
I successfully set up DMARC, DKIM and SPF for my mailserver's domain, but delivery reports created by Postfix fail the DKIM/SPF tests.
The headers of regular messages (sent via my mailserver) look ...
1
vote
0
answers
138
views
postfix: add missing subject header
I want postfix to add a Mail-Subject to messages, which do not have a subject already.
Some of my applications are trying to send E-Mail messages which do not contain a subject and these applications ...
0
votes
0
answers
60
views
E-Mails are not storing. Postfix, Dovecot & MySQL
I am trying to set up a mail server with Postfix & Dovecot using MySQL to store the aliases, domain & user.
The issue is, users are not receiving emails.
According to the log files, the ...
0
votes
1
answer
268
views
Postfix catch-all for all domains/users and send mail to external mailserver
I am configuring a mailserver that has to save all email for any domain and any user and store it in the mailfolder of one specific user. For this I have used the following configuration:
...
0
votes
1
answer
114
views
Postfix TLS: Examples for problems when using client certificates
The Postfix documentation states the following with regards to the parameter for client certificates, smtp_tls_cert_file:
smtp_tls_cert_file (default: empty)
[...]
Do not configure client ...
0
votes
0
answers
230
views
Can not setup postfix/dovecot with email clients
Having problems with configure postfix/dovecot with email clients such as outlook and thunderbird.
Using telnet and openssl I have tested both smtp and imap through ports 587 and 993.
Sent mails are ...
0
votes
1
answer
283
views
With postfix, how do you setup SASL with dovecot to receive SMTP mail and cyrus to authenticate?
I had a static IP address and setting up my mail relay was as easy as:
mynetworks = ... <static IP address> ...
(and of course authorize all incoming mail from mynetworks).
Now that I do not ...
0
votes
0
answers
76
views
Postfix+Dovecot: filter email with certain `To:` address
I have a postfix+dovecot email server. There is one mailbox that was used by the Procurement department in many online shops and the address got disclosed and included in a spam list.
I would like to ...
0
votes
0
answers
346
views
Howto Whitelist incoming mails Docker-Mailserver (=Postfix)
I recently set up the Docker-Mailserver for our company (v. 12.1.0). It's working well so far, except for one thing: We receive automated emails from a customer's Redmine system. These emails are not ...
0
votes
1
answer
122
views
Roundcube imap domain
I have configuration Postfix+dovecot+roundcube. I have installed certificate SSL on domain main.example.com so when I have added below imap configuration test is OK and roundcube works.
When I write ...
0
votes
1
answer
66
views
Using Postfix as relay to upgrade encryption
I have some embedded devices which receive no more firmware upgrades. They are only capable of sending mails with TLSv1.1 which is no longer supported by public mail servers.
So my idea is to setup a ...
0
votes
1
answer
462
views
Postfix: Set connection rate limit exceeded per host
Is it possible to define the smtpd_client_connection_count_limit per domain in Postfix? I have a default setting of smtpd_client_connection_count_limit = 10, but I want to allow a higher limit for ...