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
20 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. ...
-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 ...
-1 votes
2 answers
846 views

Docker container unable to connect to postfix on host with error "MX Routing not available"

I'm trying to run a SimpleLogin instance on my raspberry pi 4 (aka armhf/armv7l) following the official instructions, but the resulting installation isn't able to send emails to my real inbox. I ...
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 ...
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 ...
0 votes
1 answer
5k views

550-5.7.26 Unauthenticated email from domain is not accepted due on ERP only

I have made updates to our mail server to use DMARC. So after This our ERP system cannot send emails to gmail.com or yahoo.com but Outlook sends emails with no problems. Below is the header for an ...
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 ...
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 ...
0 votes
0 answers
34 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, ...
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 ...
1 vote
1 answer
5k views

How to set up TLS to work with a Postfix Mail Server

I have been tasked with implementing TLS on a Postfix email relay server for an international office. I am aware that I need to modify '/etc/postfix/main.cf' to setup TLS. We have another email ...
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 =...
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 ...
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, ...
-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 ...
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 ...
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 ...
4 votes
2 answers
8k views

Postfix: disable "sender non-delivery notification" from MAILER-DAEMON

Is there is a way to prevent postfix from sending them to the sender? My boss asked me to do so, so I'm not going to argue with him, just need to disable it. I've tried to discard them in ...
0 votes
1 answer
5k views

NOQUEUE: reject: RCPT from 451 4.3.5 Server configuration

Unfortunately after some changes on master.cf and main.cf in postfix I'm getting these errors when I try to send out a e-mail. root@mail:/etc/postfix# tail -f /var/log/syslog | grep "rene.brakus@...
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....
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....
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 ...
1 vote
2 answers
3k views

Postfix relay all mail through SES except for one sending domain / address

I'm thinking this is really really super simple, but I can't figure out what I need to do. I don't mess with Postfix much (Just let it run and do its thing) so I've got no idea where to even start ...
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 ...
0 votes
2 answers
399 views

How can I forward Mails with Postfix and Dovecot to a specific Mailbox?

I can’t figure out how to forward mail with Postfix and Dovecot to a specific Mailbox. Sender Mail Address --> Mailbox of Receiver At the moment, the mails are transferred into the INBOX of ...
11 votes
2 answers
13k views

Why use Dovecot AND Postfix/Sendmail? [closed]

Forgive me if I'm missing something obvious here but why do most Linux server distros come with both Dovecot and Postfix (or Sendmail)? As far as I'm aware all three of them are Mail Transfer Agents, ...
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-...
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 ...
-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 ...
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 ...
-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 ...
15 votes
1 answer
7k views

Change Envelope From to match From header in Postfix

I am using Postfix as a gateway for my domain and need it to change or rewrite the Envelope From address to match the From header. For example, the From: header is "[email protected]" and the Envelope ...
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 ...
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.*...
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>...
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 ...
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 ...
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 ...
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....
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 ...
12 votes
5 answers
15k views

Set up certs for multiple domains in Postfix and Dovecot

I don't know how to set up main.conf postfix config file and 10-ssl.conf dovecot config files in order to make my mail server capable to handle with multiple certificates. Let me explain... I have two ...
0 votes
1 answer
1k views

How to correctly configure OpenDKIM with Postfix on Debian 11?

The desired settings are to create a multi domain mail server. This is my main domain example.com and this is my subdomain: mail.example.com Taking the rDNS as the following verifications: hostname -f ...
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 ...
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 ...
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 ...
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&...
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 ...
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']); ...
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 ...
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 ...

1
2 3 4 5
132