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
0 votes
1 answer
17 views

In postfix can I mention sender access map in client restriction?

It's a question out of curiosity rather than necessity. What should happen say I place sender access map inside smtpd_client_restrictions and also place client access map in smtpd_sender_restrictions ...
SUNITA GUPTA's user avatar
0 votes
1 answer
38 views

In postfix how parent_domain_matches_subdomains helps rejecting mail for subdomains?

Based on the standard configuration given in https://www.postfix.org/STANDARD_CONFIGURATION_README.html#firewall the parent_domain_matches_subdomains = debug_peer_list, smtpd_access_maps should help ...
SUNITA GUPTA's user avatar
1 vote
1 answer
87 views

Why is it advised to disable relayhost when hosting mail server behind firewall?

I am trying to setup an MTA. While reading documentation I came across "Standard Configuration" for Running Postfix behind a firewall. I am confused on this part: IMPORTANT: do not specify ...
SUNITA GUPTA's user avatar
1 vote
2 answers
35 views

Can I log when the message arrival rate exceeds the message delivery rate in postfix?

I am trying to implement a MTA, on reading documentation of the postfix I found a parameter 'in_flow_delay' whose description in sort says 'Time to pause before accepting a new message, when the ...
Ayush Gupta's user avatar
0 votes
0 answers
26 views

What is behaviour of opendkim while verifying an email with multiple dkim signatures?

I am trying to implement DKIM verification using Opendkim and postfix. The doubt I am struck by is what will happen if the email has more than one DKIM signature and one of them fails (as like failed ...
Ayush Gupta's user avatar
1 vote
1 answer
56 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 ...
SUNITA GUPTA's user avatar
0 votes
1 answer
35 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]'...
LeonTheGreat's user avatar
3 votes
2 answers
225 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 ...
SUNITA GUPTA's user avatar
2 votes
2 answers
123 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 ...
SUNITA GUPTA's user avatar
0 votes
1 answer
59 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. -...
Walter's user avatar
  • 93
0 votes
1 answer
39 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'...
Nick Lockheart's user avatar
0 votes
0 answers
14 views

How to bypass postfix milters for certain users?

I am trying to setup an incoming MTA server using postfix. I have specific requirements that emails for some of the users should not go through the milters. Is there any way this can be done in ...
SUNITA GUPTA's user avatar
0 votes
1 answer
58 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? ...
SUNITA GUPTA's user avatar
0 votes
1 answer
36 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 ...
SUNITA GUPTA's user avatar
0 votes
0 answers
57 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 ...
root-louis's user avatar
-1 votes
0 answers
23 views

How do I setup DNS for a local email server with a SMTP relay [migrated]

I'm trying to move my mail server (multi domain) to my home to increase security/privacy. Therefore I set up a local server and a SMTP relay (postfix) on a hosted VPS (because of static IP, etc.). ...
cpt_wonderful's user avatar
0 votes
1 answer
68 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-...
Nick Lockheart's user avatar
0 votes
0 answers
21 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....
Nick Lockheart's user avatar
0 votes
0 answers
36 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 ...
dinamica's user avatar
  • 101
0 votes
1 answer
50 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 "...
Leslie's user avatar
  • 103
0 votes
0 answers
27 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 ...
Konstantin Konstantinov's user avatar
0 votes
2 answers
54 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 ...
user2690527's user avatar
1 vote
1 answer
74 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 ...
larsks's user avatar
  • 44.1k
2 votes
1 answer
99 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 ...
William Seligman's user avatar
0 votes
0 answers
22 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 ...
SUNITA GUPTA's user avatar
0 votes
0 answers
46 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....
MrSnrub's user avatar
  • 153
-1 votes
0 answers
64 views

postfix/smtp[1353]: connect to gmail-smtp-in.l.google.com 25 Connection timed out on aws ec2

I already clear the restriction for port 25 from AWS side our domain Officielcrm.in. our mail server domain mail.officielcrm.in and Public IP is 43.205.38.228. We are not able to send mail outgoing ...
Naman Dixit's user avatar
-1 votes
1 answer
72 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. ...
HippoMan's user avatar
  • 220
2 votes
1 answer
157 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 ...
Nick Lockheart's user avatar
1 vote
1 answer
44 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 ...
Sergi's user avatar
  • 113
0 votes
0 answers
24 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....
Nathan Hilterbrand's user avatar
2 votes
1 answer
102 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 ...
user2690527's user avatar
0 votes
1 answer
59 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/...
user2690527's user avatar
0 votes
1 answer
181 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 ...
Richard T's user avatar
  • 1,242
0 votes
1 answer
58 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 ...
user2690527's user avatar
0 votes
1 answer
63 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 ...
user2690527's user avatar
0 votes
1 answer
45 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 ...
ALEA's user avatar
  • 1
0 votes
0 answers
12 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 ...
Gijs Pampiermole's user avatar
0 votes
1 answer
54 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 ...
Nick Lockheart's user avatar
0 votes
0 answers
28 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 inf[email protected] for that domain in the mailserver ...
hitan_999's user avatar
0 votes
0 answers
83 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 ...
Pancakes's user avatar
0 votes
0 answers
40 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 ...
MMY's user avatar
  • 1
0 votes
1 answer
68 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 ...
lc63's user avatar
  • 11
0 votes
1 answer
70 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 ...
Nick Lockheart's user avatar
0 votes
1 answer
54 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 ...
user2690527's user avatar
0 votes
0 answers
57 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 ...
janeden's user avatar
  • 257
1 vote
0 answers
65 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 ...
Martin Perzl's user avatar
0 votes
0 answers
35 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 ...
Noaah's user avatar
  • 1
0 votes
1 answer
109 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: ...
Niels's user avatar
  • 1
0 votes
1 answer
56 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 ...
hjsimpson's user avatar
  • 123

1
2 3 4 5
130