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,570
questions
0
votes
2
answers
495
views
Can I Force Implicit TLS Connection For Port 587 On Postfix?
I have read many articles saying port 587 by default is explicit TLS. This means it's STARTTLS. It asks the server on an unsecured connection if TLS is supported and if it is, it continues with an ...
1
vote
1
answer
247
views
Warning with sending emails from Thunderbird to Postfix using its own CA
I'm asking for help because I simply don't have the strength anymore, I've spent a lot of time and I'm still left with an unsolved puzzle.
My problem: I keep getting "Wrong Site" warnings ...
-1
votes
2
answers
639
views
Postfix smtpd and smtp restrictions (client, sender, recipient) first restriction that matches wins very ILLOGICAL for brute force attacks
if I have a list of restrictions for:
smtpd_client_restrictions = permit_mynetworks,
permit_sasl_authenticated,
reject_rhsbl_helo dbl.spamhaus.org,
reject_rhsbl_reverse_client dbl.spamhaus....
0
votes
0
answers
219
views
Postfix - Forward mail externally through relay
I manage the mail server for mydomain.com. Some users have a local IMAP mailbox, but for some their address is an alias and I'd like to forward their message to their external address. I've configured ...
1
vote
1
answer
255
views
Wrap plain text mail in html
we use Postfix as MTA to send our mails from our system. Unfortunately we have an old persistent system which we cannot change, which sends mails to our customers in plain text format. I would like to ...
0
votes
3
answers
148
views
Postfix: How can I handle incoming mail for a single address, not the entire domain?
I've gotten my employer to configure the company-wide Exchange server to forward [email protected] to [email protected], a host I control. So far, so good. My Postfix configuration ...
1
vote
3
answers
229
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
72
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
607
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
89
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
60
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
186
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
200
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
3k
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
74
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
21
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
89
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
80
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
49
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
36
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
125
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
162
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
58
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
890
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
517
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
132
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
132
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
467
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
1k
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
348
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
128
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
96
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
208
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
551
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
582
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
61
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
187
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
207
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
140
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
459
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
51
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
450
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
84
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
150
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
914
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
554
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
226
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
270
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
93
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], ...