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
0 votes
0 answers
4 views

Should smtp_helo_name always be the same as your MX record?

I can't seem to satisfy HELO checks on SPF records in all cases. I have an SPF record for my domain like this: "v=spf1 mx -all" The MX records in the zone are: mx0.mydomain.org.uk. ...
TommyPeanuts's user avatar
-1 votes
0 answers
59 views

Postfix Mail being redirected to private inbox

I am relatively new to Linux, setting up servers and especially handling mail related things. I've bought a new domain and rented a VPS, which now hosts my website. I need a more open environment for ...
Brentspine's user avatar
0 votes
0 answers
11 views

openarc: can't parse Authentication-Results

I've just set up openarc on fedora38 with postfix-3.7.9. I believe it's working properly, but I have a few questions. I'm seeing messages like this periodically. I've found another similar report from ...
Alex Regan's user avatar
0 votes
0 answers
7 views

Why does the SpamAssassin not insert some headers?

Trying to configure SpamAssassin 4.0.0 with Postfix 3.7.10 on Debian 12. I'm using spamass-milter 0.4.0. My /etc/spamassasin/local.cf has the following entries: required_score 5.1 ...
thomson's user avatar
0 votes
0 answers
14 views

Multiple Postfix Instances *without* postmulti

I have been running multiple instances of certain services (php-fpm, mysqld, httpd) and am now trying to do the same with Postfix. Searching online, I have so far only been able to find descriptions ...
user10709800's user avatar
0 votes
0 answers
33 views

postscreen "deep protocol" tests and multiple MX IPs?

In the Postfix postscreen readme, it says the main limitation of "after 220 greeting" tests is that a new client must disconnect after passing these tests. To partially mitigate problems, it ...
TommyPeanuts's user avatar
0 votes
0 answers
33 views

Postfix Blocked by SELinux

Struggling getting Postfix to run properly on CentOS9, I have it working sending a mail when I call webpage that has the code for a hardcoded email test. The issue is on a contact form on the website, ...
llanato's user avatar
  • 211
1 vote
0 answers
25 views

Outlook.com does not send mails to my Postfix server but terminates SMTP session immediately with "QUIT"

I am running my own Postfix instance. TLS certificates are from Letsencrypt, DANE and DNSSEC is working. Outlook. com is unable to send any mail to my Postfix instance, but closes the SMTP session ...
user2690527's user avatar
0 votes
0 answers
37 views

Configure fail2ban to parse multiple log lines, e.g. Postfix mail rejects

I want to to block local authenticated mail users who generate spam, i.e. disable their SMTP access for a while as one of several countermeasures against hijacked accounts and malware. To accomplish ...
Jens's user avatar
  • 149
-1 votes
0 answers
34 views

Postfix virtual mailboxes with only one single domain

I have read the Postfix documentation for virtual mailboxes but I can't find methods for my use case, with is shared domains, both UNIX and non-UNIX accounts, because I only have one domain. But ...
ZP-ZPanda's user avatar
0 votes
0 answers
27 views

How to monitor users usage of GPG keys on company email server

I've been tasked to monitor our user's usage of PGP keys (ie: how many emails are sent/received using PGP). How can I go about doing this? We all use Ubuntu and the Thunderbird email client and ...
GodAtum's user avatar
  • 319
1 vote
1 answer
39 views

Postfix connection timeout to all servers

I have Postfix on an Ubuntu server. postconf mail_version mail_version = 3.6.4 Every email i send to any recipient ( tried gmail , hotmail and yahoo ) , is stuck in the queue (connect to alt2.aspmx.l....
HelloWorld's user avatar
0 votes
1 answer
96 views

Postfix client submission using TLS

I recently set up a Postfix mail server on Ubuntu to relay emails from my apps to Office365. Postfix to O365 works without problem but I also want my apps to connect to Postfix using TLS where ...
smwk's user avatar
  • 590
0 votes
1 answer
119 views

Postfix Restrictions sender recipient

I am trying to implement a blocklist for senders and domains in my postfix (Debian 12) setup. This is what I have so far: smtpd_sender_restrictions = permit_sasl_authenticated, ...
Christian's user avatar
2 votes
0 answers
65 views

how to protect postfix mail from gmail spam [duplicate]

I am experiencing an issue with the BDIX (Local Bangladeshi server) server. I have set up a mail server on the local BDIX server using postfix with aapanel. I have configured SPF, DKIM, and DMARC in ...
Rumaion Tomal's user avatar
0 votes
0 answers
4 views

Postfix alias vs. virtual_alias for catch-everything-else?

I have postfix running fine with aliases. So I got an email [email protected] mapped to my local user [email protected]. Same for alias2 and so on. Unknown users (or aliases) get blocked by postifx. Now I want ...
Christian's user avatar
2 votes
2 answers
73 views

Send emails via connected camera to postfix server

I have a debian VPS with a Postfix server on it and I want to deliver local mails sent by connected cameras. Here is my postfix main.cf : smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) biff =...
Maxime Pieau's user avatar
1 vote
0 answers
23 views

Postfix configuration to block spammer domain isn't working

I have an Ubuntu 22.04 cloud VM with Postfix 3.6.4-1ubuntu1.3 installed that I largely use for receiving e-mails sent to addresses at my personal domain that I provide when signing up for less-...
jwodder's user avatar
  • 117
0 votes
0 answers
14 views

How to route email in Postfix depending on both the origin and destination domain?

I have a Postfix server sending emails for a few different domains. Ideally I'd like to directly send all outgoing messages directly to their MX, as email should work. I have DKIM, SPF and DMARC, I ...
Giovanni Mascellani's user avatar
-2 votes
1 answer
40 views

How to run multiple email domains with port splitting? (like nginx proxy) [closed]

So im trying to make it so i have 2 domains, A.com, and B.com. they both use different email software (A.com has postal email server and B.com has modoboa) *something to also note, based on the ...
user655355's user avatar
1 vote
2 answers
117 views

How can I mitigate a flood of inbound emails that look legitimate to filters?

I have a mail server - postfix, amavis, dovecot. Currently one of my inboxes is being flooded with random email from all over the globe. It's like someone signed me up to 10,000 newsletters all at ...
Nick Wiltshire's user avatar
-2 votes
1 answer
54 views

Mail servers setup - HA

I would seek your expert guidance for this topic and your help would be really appreciated. I want to setup mail service in my org in such a way that they are highly available and even if one of the ...
sunny_hkhk's user avatar
0 votes
1 answer
54 views

Customise a configuration file from Dockerfile

I am trying to create a postfix container. What I want to do is to send emails from another container. Here is what I've done: FROM ubuntu:latest RUN apt-get update && apt install -y postfix ...
Bob5421's user avatar
  • 429
0 votes
1 answer
61 views

Postfix postmap header_checks warnings

I have the following postfix header_checks and they have worked well for years: /^Date: .* 21.*/ REJECT Your email has a date from the far future. Fix your system clock and try again. /^Date: .* 20[3.*...
Pavman's user avatar
  • 21
1 vote
1 answer
117 views

Understanding DMARC report - DKIM pass on SPF fail

I am looking for some help understanding a DMARC report for my email server. The xml content looks like the following: <?xml version="1.0" encoding="UTF-8" ?> <feedback>...
gdldg's user avatar
  • 13
0 votes
0 answers
31 views

Postfix replace in body by adding CR

I'm trying to configure Postfix body_checks function in order to add a CRLF when an end of attachment is detected using this: /(.+)--$/ REPLACE $1--\r\n The regex is correctly applied but the \r\n is ...
user1089937's user avatar
0 votes
0 answers
24 views

SPAM and SPOOF emails from postfix mailserver

I created and configured a postfix server, basically its an smtp-only server. I added the domain i want to use in postfix main.cf, and also added other domains in virtual file. I installed configured ...
Hussein Khazem's user avatar
0 votes
0 answers
11 views

Postfix header_checks regular expression not working

I have the following rules that are not working: if !/^From:\s(.+@domain\.com)/ /^Subject: (.*?)$/ REPLACE Subject: [EXT] $1 endif It suppose to alter Subject line by adding [EXT] as prefix if if not ...
Vlad H.'s user avatar
0 votes
0 answers
18 views

How to change the sender address using mailutils and postfix?

May 27 14:19:33 localhost postfix/qmgr[21793]: 87FD870AD12: from=user@localhost, size=398, nrcpt=2 (queue active) May 27 14:20:03 localhost postfix/smtp[22591]: connect to mail.rungel.net[95.168.160....
OnionTest5's user avatar
0 votes
1 answer
87 views

Postfix check_sender_access not blocking certain addresses

I keep getting spam emails from 'ional.co.uk'. I've got an address based blocking solution which handles all other emails just fine, but somehow this domain keeps getting through. Full files I can add ...
Sarazil's user avatar
0 votes
1 answer
54 views

Postfix body_checks rejected a message — how can I find out which regexp was fired so I can remove that from the filter?

I have a body_checks file for postfix. Unfortunately I rarely, but sometimes important mails are not received, because they are rejected by the body_checks, although there should be no match. Here is ...
Rafael's user avatar
  • 13
0 votes
1 answer
99 views

Saslauthd service not starting after upgrade to Ubuntu 24.04

I stuck with not starting saslauthd service after upgrade Ubuntu to 24.04 (it runs along with Virutalmin). So i can't authenticate to smtp (cant send mails, but still can recieve) due to error: 454 4....
Tomasz's user avatar
  • 1
0 votes
2 answers
57 views

Not able to connect to MySQL from postfix

opensource community I am using Postfix, dovecot and Postfix Admin for my complete email setup I am using virtual users so I have installed postfix-mysql and dovecot-mysql Issue: My postfix service is ...
Sahil Pahuja's user avatar
0 votes
0 answers
36 views

Postfix install on docker desktop don't send email and I find no logs

I need to set up a postfix server to send emails. After a few searches, I stumbled upon this tutorial: https://www.linuxbabe.com/mail-server/setup-basic-postfix-mail-sever-ubuntu. Because I remember ...
Big_Boulard's user avatar
0 votes
2 answers
272 views

554 5.7.1 Relay access denied - cant send mails

I tried to upgrade debian from 10 to 11 and the everything got messed up. Im trying to fix postfix. I can receive emails but cant send. I get the error "554 5.7.1 Relay access denied" My ...
Anarkie's user avatar
  • 11
0 votes
0 answers
132 views

Postfix Configuration: How to Save Outgoing Emails Locally Instead of Forwarding?

I'm facing an issue with my Postfix setup where it should be saving all emails locally using a custom script, but instead, it attempts to forward outgoing emails, leading to "Relay access denied&...
Chika228's user avatar
0 votes
2 answers
33 views

postfix error handling to not lose the mail

I have a website with a form. When submit the form php sends a mail to a local gateway. php code looks like this: $ok = @mail($emailData['to'], $emailData['subject'], $message, $emailData['headers']); ...
cruunnerr 's user avatar
0 votes
0 answers
47 views

How to add your own private keys to postfix configuration for DKIM without opendkim or the likes of it?

I have generated the keys locally through openssl added key.pub to the DKIM DNS txt Record but how to add it to postfix withouth any other tool.Is there any connfiguration parameter where the file ...
Abu Shahrin's user avatar
1 vote
1 answer
91 views

Postfix: Mail servers of certain providers are unable to send mail to my Postfix server / insufficient security / SSL alert number 71

There is big German email hoster (web.de) whose mail servers are not able to send mails to my self-hosted Postfix server. I found similar reports, but the published solutions always were misconfigured ...
user2690527's user avatar
1 vote
0 answers
25 views

Postfix accepting email from incorrect domain

I have a postfix setup and it appears to be accepting emails for other recepients and forwarding them to an existing legitimate email. For example, we receive a spam email for [email protected], and postfix ...
Shuttleu's user avatar
0 votes
1 answer
41 views

(Postfix) set rate_delay for 2 sending domains to 1 receiving domain

Currently I own 2 sender domains aaa.com and bbb.com. The restriction is that: Each domain can only send one email after another with a delay of 200 seconds. Each domain can only send 100 emails ...
wrigamer's user avatar
0 votes
2 answers
63 views

OpenDKIM key data deemed insecure

An email is not being sent and being logged by Postfix with the following error default._domainkey.example.ws: key data is not secure: /etc/opendkim/keys/example.ws/default.private is in group 124 ...
Jerome's user avatar
  • 239
0 votes
1 answer
94 views

Outlook timeout when adding IMAP account (dovecot, postfix)

I am adding a Postfix /dovecot mail server in Outlook 2016. It works on my phone and I can successfully authenticate using: doveadm auth test user pass postconf -n alias_database = hash:/etc/aliases ...
Slenti's user avatar
  • 1
2 votes
1 answer
284 views

Postfix not updating Let's Encrypt certificate

Whenever I update the SSL cert on the server (Alma Linux) I restart Postfix. I usually do this a few days or a week before the certificate runs out. However mail connections always fail on the day the ...
Kline's user avatar
  • 226
0 votes
0 answers
49 views

Postfix with cyrus and saslauthd always accepts

I want to secure a relay with sasl. saslauthd works testsaslauthd -u weberjn -p *** 0: OK "Success." Tried smtpd_relay_restrictions from the SMTPD_ACCESS_README: # Relay control (Postfix 2....
weberjn's user avatar
  • 99
1 vote
3 answers
227 views

Why it's recommended to run Postfix in a chroot jail?

I understand that chroot allows to isolate Postfix, so if an attacker gives an access to one of a Postfix program, he cannot maliciously change something outside of the chrooted directory. Seems that ...
Ilya Ordin's user avatar
0 votes
1 answer
155 views

SMTP Server: Postfix w/ Dovecot - how to configure the allowed username + password?

I seek a Linux-based SMTP server. I've read tutorials and specs regarding Postfix SASL with Dovecot, though I can't find how to configure the list of username and password which are allowed to send ...
Dor's user avatar
  • 175
0 votes
0 answers
29 views

Postfix recipient rewriting based on recipient_canonical and the file .forward in the user home directory

Before posting this question, I already do some search on Google, serverfault, etc. and don't find anything (related to postfix and .forward) Postfix - address rewriting - reply all https://superuser....
Charles's user avatar
-1 votes
2 answers
39 views

Need Postfix to send domaina.com to Gateway A, but if there is any other domains '*' in the same message send to Gateway B instead

I'm looking to set up Postfix to route emails from domaina.com to Gateway A, but if the email contains any other domain, I'd like it to be sent to Gateway B instead. I was wondering if it's possible ...
Dub Pankhurst's user avatar
0 votes
0 answers
47 views

Postfix / Courier / Amavis - Move spam to junk folder

Running Postfix / Courier / Amavis / Spamassassin on my Debian 12 server. Using this setup for quite some time now. Everything is configured and works well (DMARC, DKIM SPF, MTA-STS etc.). Incoming ...
andy's user avatar
  • 101

1
2 3 4 5
132