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,528
questions
1
vote
3
answers
153
views
Postfix - Cannot run - update-ca-certificates -fresh
I just face an extensive Email service disruption at my work. During the incident, we had some postfix giving some errors concerning:
Fatal: connect #n to subsystem private/rewrite: Connection refused....
0
votes
1
answer
46
views
How to reject mails sent to a mail adress found with a ldap lookup
I'm trying to reject emails sent to specific email addresses with an LDAP lookup.
I have made this ldap lookup table:
version = 3
timeout = 100
## set the size_limit to 1 since we only
## want to ...
1
vote
1
answer
347
views
Deliver mails in Maildir in /var/spool/mail with Postfix
I search for hours without finding the solution and it drives me crazy.
Is it possible to ensure, without using Procmail, that Postfix delivers emails in the form of Maildir {cur,new,tmp} in
/var/...
0
votes
1
answer
74
views
can't get email from exchange to postfix
I configured a postfix mail server to receive emails.
I enable TLS as per security requirements as well as port 25 is banned by the provider.
I enabled both 465 and 587 with the following on master.cf
...
1
vote
1
answer
47
views
What does `static:rest` in the Postfix configuration mean?
In the Postfix configuration line (main.cf)
smtp_sasl_mechanism_filter = !ntlm, static:rest
what is the meaning of “static:rest”? While static: is explained in Postfix’ documentation as yielding the ...
0
votes
1
answer
136
views
Spamassassin not adding X-SPAM header
I've spent hours on websites, checked config files etc. But can't find the problem.
Debian server, with spamassassin and postfix.
Spamassassin is enabled (checked it on command line). In the mail.log, ...
0
votes
2
answers
147
views
Receive notification whenever someone marks email as spam POSTFIX
I have created a mail server using Postfix. I have added a 1x1 tracking pixel to track email opens.
I would like to receive a notification either on an http endpoint or my email address whenever ...
0
votes
2
answers
2k
views
Postfix relay to Office 365 - DNS configuration
To reduce the likeliness of email being flagged as SPAM, I believe these are the few things that should be done on email servers:
Hostname resolves to a valid IP e.g. mail.example.com to 1.1.1.1
...
0
votes
0
answers
66
views
postfix SRS how to do not change Return-Path for non-forwarded emails
If set postsrsd as described in https://github.com/roehling/postsrsd all incoming emails have changed Return-Path. They say you can workaround it with multiple instances of postfix. Could you show ...
0
votes
0
answers
20
views
Postfix 2nd domain
I have two postfix servers(virtual machines) on same host
1st domain = mail.xyz.org
2nd domain = mail.xyz.edu
I want to send mail from 1st domain to 2nd domain.
If i try, it gives error:
Recipient ...
2
votes
0
answers
80
views
Docker Postfix Admin bulk aliases, custom maps, and custom config files
I'm in the process migrating my bare metal postfix implementation over to docker to essentially upgrade my old box to a more docker/vm-centric server and hopefully add virtual domain support. I'm ...
0
votes
1
answer
68
views
CentOS 7: Postfix logs got cleared when running history -c. How can I investigate what happened the day the log was cleared?
By default, running history -c has no way of also deleting /var/mail/maillog, right?
How can I investigate what happened the day the log was cleared, or (by definition) when the new maillog was ...
0
votes
0
answers
40
views
postfix. routing outgoing mails by message-id
I know there is a sender_dependent_default_transport_maps setting in Postfix to route outgoing mails through different relays based on the sender
Is such routing based on message-id possible?
If so, ...
0
votes
0
answers
31
views
Make postfix retry PNCR Status (5xy code)
Every now and then I am forced to send medium volumes (100-1000 mails) to microsoft smtp servers (outlook.com/hotmail.com)
outlook-com.olc.protection.outlook.com
Remote Server returned '554 5.7.1 <...
0
votes
1
answer
109
views
Dovecot says user does not exist although it's in MariaDB database
I use a MariaDB to store users for Dovecot 2.2.10. The Dovecot keeps giving "Disconnected unexpectedly" errors, and I can't find a reason. Is there anything I could look at?
Mail logs
Aug 29 ...
0
votes
0
answers
93
views
postfix secure & insecure connections
I have configured postfix SMTP server for mail sending only with below configurations, I've used cyrus-sasl to authenticate with openLDAP, I want to achieve SMTP port 25 to use insecure connections ...
0
votes
0
answers
55
views
Two subdomains, two iredmail (postfix) servers, duplication and migration
There are two servers in the local network, and iredmail is installed on both (I don't think this is important, since Postfix is here). There is one domain example.com and one IP, and also two ...
3
votes
1
answer
494
views
Linux port 25 is not working, and postfix unable to establish external connections at port 465, internal connection works with issues
I guess these are two typical issues, at least first one is. I'm trying to configure postfix dovecot on CentOS 7.
First, the port 25 is open, but it is not accepting any outer connections.
The ...
0
votes
1
answer
298
views
How to configure postfix to reject emails which are pretended to be send from myhostname?
Suppose the Postfix mail service is serving domain @mycompany.com. Local network is 192.168.10.0/24. The attacker from Internet sends an email pretending it originates from @mycompany.com:
Received: ...
0
votes
1
answer
104
views
OpenDKIM & OpenDMARC on SLES 15 SP2
Hello is it possible to install OpenDKIM & OpenDMARC on SLES 15 SP2 through the default repository of OpenSUSE?
0
votes
1
answer
95
views
Postfix : Only receive emails from specific tlds?
I've been searching everywhere and can only find how to block specific tlds.
I've set up a rejected_domains file that blocks tlds which I have to manually add as they appear in my inbox.
Basically, ...
0
votes
1
answer
310
views
Postfix: recipient_bcc_maps for incoming mails only
With the parameter recipient_bcc_maps in main.cf from Postfix it is possible to send incoming mails from a list of email addresses as a BCC copy to other email addresses.
I want to BCC copy only those ...
1
vote
1
answer
794
views
Troubleshooting SMTP and IMAP Configuration for Postfix Email Server on Ubuntu
I've recently installed Postfix and dovecot on my linux machine running Zorin OS 16.3(Ubuntu Based Linux Distro) to be able to host my own email server for my website.
The server is port forwarded ...
1
vote
0
answers
263
views
How to move Spam emails to Spam folder With RoundCube and Dovecot-Pigeonhole
OS: Rocky Linux 9.2
Services: Dovecot, Dovecot-Pigeonhole, Postfix, Spamassassin, RoundCube
I'm trying to move emails flagged as spam by postfix and spamassassin to spam folder using Dovecot-...
1
vote
0
answers
100
views
sender dependent default transport maps
I have around 6 Ips and 6 email addresses I want to make sure that every email address uses the Ip that I allow it to send email I added this command in the end of main.cf sender dependent default ...
1
vote
2
answers
78
views
alert certificate expired:../ssl/record/rec_layer_s3.c:1543:SSL alert number 45 when sending mails from the same server that hosts postfix
So, I have setup an smtp server using smtp in a Debian 11 machine. It works perfect when sending emails from my phone and my computer, but it does not work when trying to send emails from the same ...
0
votes
1
answer
166
views
Postfix smtp_header_checks does not prepend header, but ignores or warns
I am trying to add those headers to email sent via the postfix server:
Precedence: bulk
Auto-Submitted: auto-generated
These are the configuration files and only header_checks adds the correct header....
0
votes
1
answer
350
views
postfix commands=5 causing mails not being sent
I'm able to send only mails using postfix but when it comes to sending mails to my own domain, postfix usually uses commands=6 which sends the email but sometimes it issues the commands=5 which causes ...
3
votes
1
answer
399
views
Configure postfix to enforce client certificate authentication for one domain
I have a postfix server which processes mails for several domains. The server is using TLS encryption if the client requests ist, but does currently not enforce it for compatibility reasons.
Now there'...
0
votes
0
answers
48
views
SASL authorisation and hostname to access the server
I have a working postfix mail server. It is registered under two DNS names: mail.xxxx.de and xxxx.no-ip.org. I use SASL via dovecot for relay authorisation. It works flawless when the client uses the ...
0
votes
1
answer
147
views
Not able to receive emails on Postfix
I installed a mail server with Postfix and Dovecot on Debian. I can send emails without worries to Outlook, Yahoo, ...BUT I can't receive emails from outside.
I use my internet box (free) as a router. ...
0
votes
1
answer
147
views
PostfixAdmin on Nginx returning 403 Forbidden
I haven't used PostfixAdmin in a while. When I recently went to mail.domain.com/postfixadmin I was greeted with a message telling me to point an alias to /postfixadmin/public. After a bit of searching ...
0
votes
0
answers
107
views
Dovecot authentication with hardware key ( yubikey )
Recently, I've been working on implementing hardware keys for authorization in dovecot/postfix and unfortunately, perhaps due to lack of knowledge, I wasn't able to implement it. From what I've seen, ...
0
votes
1
answer
316
views
Postfix warning: not enough free space in mail queue
I have already checked the solutions at this post, but I can't find the reason.
This is my situation:
Running postfix inside a docker container (docker swarm).
Docker container has no quota.
/var/...
0
votes
0
answers
44
views
"mail spamd[495361]: internal error, python traceback seen in response" on Ubuntu 20.04 when receiving email from gmail. How to debug and fix?
I am running Ubuntu Server 20.04 on a Raspberry Pi. It is set up as a web/email LEMP server. When I send an email from my gmail account to a an email address on my LEMP server, I get an error from ...
1
vote
1
answer
336
views
Audit log emails not going to the correct address
On Ubuntu 20, I'm trying to send audit logs to [email protected]. I do have a real domain and email server but I'm redacting them here. When I trigger an audit event, the email is instead sent ...
0
votes
0
answers
60
views
Dovecot missed permissions to access mail directory
I'm trying to install a new mail server and I think I've done something completly wrong. I don't know how to fix/continue my current situation.
I've installed postfix on my Debian 11 system, working ...
1
vote
1
answer
96
views
Postfix permit_sasl_authenticated before content_filter
I have a postfix + dovecot + spamassassin setup which works great, but I would like to bypass all outgoing messages (sasl authenticated) from spam filtering. I must do something wrong, because I ...
0
votes
1
answer
1k
views
Postfix - can't send emails to gmail addresses via terminal
I have the following errors when trying to send emails to gmail addresses via my terminal:
sudo tail /var/log/mail.log
Jul 19 13:19:44 ubuntu-4gb-fsn1-1 postfix/cleanup[5780]: B4B8C5F4A3: message-id=&...
0
votes
2
answers
447
views
Postfix smtpd_sender_restrictions with logical AND
I am using postfix, I need to configure sender based restrictions so nobody that is not authenticated & not part of mynetworks can send mail through this server,
this is my smptd sender ...
0
votes
1
answer
379
views
shared mail address with postfix and dovecot
I'm trying to set up some shared mailboxes like contact or support.
I have made it possible for me to share an IMAP folder between users in Dovecot by doing this in 15-mailboxes.conf
namespace {
...
0
votes
0
answers
148
views
Moving Spam to Spam folder ( postfix-courier imap, spamassassin)
I've a mail server that supports virtual-users on mysql with ( courier-imap , postfix , spamassassin, amavis)
For every new user my server creats dirs like (inbox, drafts, sent, trash)
In /home/...
0
votes
1
answer
196
views
Postfix on IPV6: no MX host for yahoo.co.uk has a valid address record
I have my new cloud server running on ipv6 only. I have set the AAAA mx record. Postfix installed with the following config:
$ sudo nano /etc/postfix/main.cf
smtpd_banner = $myhostname ESMTP $...
0
votes
0
answers
83
views
Postfix using asterisk user to send emails. Mapping did not work, are there any other options?
I am trying to set up a PBX server to send voicemails to emails, which is being triggered properly, however, the from email is not the correct one I want to use. Instead of using [email protected], ...
0
votes
2
answers
39
views
How to tell how many users are sending/receiving encrypted email in Postfix/Dovecot?
I have access to the /var/log/mail.log files. They also output to Splunk. How do I find out how many users are sending/receiving encrypted email in Postfix/Dovecot? They use Enigmail/PGP in their ...
-1
votes
1
answer
188
views
Is there a way to restrict senders access in postfix depending on Active Directory group they're in?
I have a postfix server setup and it is authenticating against AD with dovecot.
Is there an option to configure it so one user in Group A can send mails as @a.local domain and user from Group B can ...
0
votes
1
answer
340
views
Postfix header_checks are ignored
I'm using Ubuntu 20.04. I installed Postfix (v3.4.13) with Dovecot (v2.3.7.2) a long time ago. Now, I want to overwrite the Message-Id header using header_checks. It's the first time I'm trying to use ...
1
vote
2
answers
111
views
Why is postfix rejecting one particular validly DNS-mapped sender?
I'm running postfix 3.5.18 under Debian 11. The mailserver is working fine for all senders except one.
I regularly am getting this message from emails from one sender and one sender only (where I ...
0
votes
1
answer
72
views
OpenDkim - PHPMailer - Failure OpenDkim
my dkim configuration was working just fine. Im working with an email marketing app, pretty simple, normally i used to send the campaign with a Sender ID that is my domain company, and for the From ...
1
vote
0
answers
38
views
Redirection - from one account to two via canonical
On a handful of servers in my environment I've got the following in /etc/postfix/canonical:
if !/[email protected]/i
/.+/ [email protected]
fi
Now I'm being asked to do add another email to ...