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)

2
votes
1answer
50 views

Is it possible to limit delivery of mail to select user mailboxes to specific hours in Postfix?

In an attempt to enforce company hours and lessen employee stress, I would like to limit the delivery of email to their user mailboxes to business hours while not limiting outbound or normal mail ...
0
votes
1answer
64 views

How can I decide which emails go through SMTP relay?

I am using postfix configuration that use SMTP relay on Sendgrid service like this: smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = noanonymous ...
1
vote
1answer
62 views

Policyd don't working with my given rules (Not REJECT Mails)

I want to Reject outgoing mails for spesific user so first i add a policy like that: Name | Priority | Description | Disabled ...
0
votes
1answer
41 views

Postmap returns database not found error

I have set up my Postfix configuration with Mysql maps, prety much as detailed here and here. I have a file at /etc/postfix/mysql-virtual-mailbox-domains.cf which contains the following: user = ...
1
vote
1answer
24 views

Is it possible to user based mail send control on Postfix?

i am using postfix - dovecot based mail system and i have my own frontend - backend api structure for send and recieve mails. I am slightly new on postfix and i want to do something like; I have an ...
0
votes
0answers
30 views

How to find out how spam is being sent helo=127.0.0.1

I have a mail server which is rate limiting outbound mail using postfwd rules as follows: id=R005; action=dunno ; client_name=host\.mydomain\.com\.uk$ id=R010; sender=~/.*/; action=rate(sender/100/...
0
votes
0answers
21 views

Automatic creation of a mailbox in catch all postfix configuration

I'm using Ubuntu 16.04 and postifx. I would like to create catch all mechanism but I would like to create directory for each user when incoming mail to non existing user. For example: incoming mail ...
0
votes
1answer
47 views

Mail server - relay with TLS and authentication

I am working with postfix and dovecot and I can't seem to find out anywhere how to create this setup: 1) allow submission of emails from outside (telnet) where the sender domain is the local server ...
0
votes
0answers
11 views

Wrong reply email in recipient mail client

When I send email from foo@domain.com it's all allright but when recipient want to reply, there is mail.server.com@servername.com. I checked /etc/postfix/header_checks because I googled there can be ...
1
vote
0answers
122 views

Postfix Changing Subject Header

My mailserver is receiving spam with an empty Subject line, and I want to modify the subject line to have some text in it so applications can filter on it - however I am struggling to do this. One ...
1
vote
1answer
113 views

How to get postfix to check all 'Recieved:' headers against an RBL?

I have several rbls listed in smtpd_client_restrictions, but this only checks the client IP against the RBLS. Is there any way to get postfix to check each Recieved: line against the RBL like ...
0
votes
1answer
159 views

Grafana can't sent to localhost. SSL_accept error from localhost[127.0.0.1]: -1

Grafana running on the same server as postfix tries to send to it, but I get this error: Feb 21 08:14:00 postfix/smtpd[10624]: SSL_accept error from localhost[127.0.0.1]: -1 Feb 21 08:14:00 ovh ...
1
vote
0answers
60 views

Is there a possibility to rewrite the recipient_delimiter in postfix

I use email address suffixes to file emails to different folders. For example, me+suffix@example.com would be filed in folder "suffix". This works, but I would also like to allow for "-" as ...
0
votes
1answer
59 views

Route local outgoing mails to relayhost

TL;DR: I'm trying to force postfix to route mail sent from local user to another local user to be routed to another server (relayhost). This should not apply to incoming mail from external to local. ...
1
vote
2answers
63 views

Postfix error in regexp in body checks expression

I get confused with this rule to block and emails that contain a link which address finish with .icu/: /.*\.icu\/*./ Reject So, emails containing: blablabla.icu/blabla get blocks. The problem is ...
0
votes
1answer
70 views

Postfix sends plain text emails from PHP but rejects html

After moving to another host my site stopped sending E-mails (UTF-8 HTML). But I'm still able to send text emails like these: echo test | mail -t me@example.com -s test php -r 'mail("me@example.com",...
1
vote
1answer
50 views

Should I enable port 587 for mail relay access?

I run a virtual email server using Postfix that forwards emails addressed at domain.com to specific Gmail / Hotmail accounts. This same server also acts as a mail relay, and uses saslauthd to allow ...
1
vote
1answer
112 views

Postfix discard all but transport list

I am setting up a backup SMTP server which is located outside of our offices. The idea is that it should accept all messages addressed to our domains (DNS metric is high, so this should happen only ...
-1
votes
2answers
107 views

Is someone able to sniff our corporate emails?

To put the long story short: we discovered someone is able to access some of our "secret" links we do send to our clients over email. The links are highly secured with hashes, extremely difficult to ...
0
votes
1answer
45 views

Postfix - can't recieve emails from external domain (Ubuntu 16.04)

Good morning! I have a bit common problem, but I haven't found any solution yet, after reading really a lot of forums and tutorials. Shortly: I want to send an email from external domain to my server,...
0
votes
1answer
121 views

Postfix authentication using MySQL SHA512

In our postfix setup, we are using the pam_mysql module to authenticate the user from the MySQL database. ( similar to this link) Which is perfectly working fine. We are using SHA512_CRYPT() for ...
0
votes
2answers
40 views

Postfix + Dovecot + AWS + CloudFlare + SquirrelMail Unable to receive messages

Set this thing up awhile ago, and it sends messages Just fine, However I wanted to start being able to receive messages. Iv tried telneting into port 25, and nothing. dig dzwxgames.com mx: ...
0
votes
1answer
56 views

Postfix reply from catch-all received address

I have a postfix installation where all addresses are virtually mapped to one user, i.e.: >cat /etc/postfix/virtual @mydomain.com myuser What I want is the ability to reply to emails that are ...
0
votes
0answers
41 views

how to put hard bounced emails to the hold queue with postifx?

A postfix server of mine was for a short period of time on a blacklist (misconfigured HELO String 'localhost.localdomain'). The 550 rejected emails got deleted immediately from the postfix queue, ...
0
votes
0answers
73 views

Postfix - smtp.mailfrom domain of a php app

How to setup Postfix/PHP to have the smtp.mailfrom in the form of wordpress@wordpress-site-domain.tld? I have multiple users on the server, and each one has one or more WordPress installations, but ...
1
vote
1answer
60 views

Is it an issue when I change the IPv4 address of my SMTP server?

I have a postfix/dovecot setup for a personal mail account. It's really just a one-man mail setup. Now I want to move my setup to a new VPS which means it'd get a new IPv4 address. My concern is ...
0
votes
1answer
85 views

Postfix issue: Email not showing up

I'm being taught to use PostFix to make a personal, cross-domain mail service. I've been stuck on this for a while, but... here's what happens. In this case, the DNS and mail servers, as well as ...
0
votes
0answers
61 views

Whitelist or rewrite recipient address in postfix

I am managing a website. In production environment, all the emails are relayed through a central postfix using amazon ses as smtp relay. The reasons to add postfix in between and not use ses directly ...
-1
votes
1answer
83 views

Postfix: Illegal address from unknown sender

I got this alert from my maillog postfix mail postfix/smtpd[13563]: warning: hostname riservata.miami19.mia.seabone.net does not resolve to address 195.22.199.54: Name or service not known Do you ...
1
vote
2answers
478 views

Postfix - Connection Refused error

I'm trying to build send only mail server using postfix. I folowed this documentation from digital ocean When I try to send email, it gives below error. (I copied from /var/log/mail.log) lets say my ...
0
votes
2answers
80 views

blocking port 25 cause mail server cannot receive mail

I use TLS for my postfix and dovecot,and I ready test centos 7 mail server by various tools,result as below: Priority: 5 Connection established: yes TLS: yes SSL: yes Cipher: TLSv1/SSLv3, Cipher is ...
3
votes
1answer
363 views

`connect to private/policy-spf: No such file or directory` when receive mail by postfix in centos 7

My system is centos 7 with postfix,dovecot,pypolicyd-spf, opendkim. I can send mail but cannot receive mail, I notice warnings as below: Feb 6 20:01:09 srv-8327 postfix/smtpd[20391]: warning: ...
0
votes
1answer
935 views

Warning `undefined parameter: mua_sender_restrictions` when `postconf -n`

My system is centos 7. I am setting up mail server with postfix,dovecot,mariadb based on this post. There's a problem in my mail server, can send mail but cannot receive mail. Then I postconf -n,...
0
votes
0answers
13 views

Package sid-milte, sender-id install

Did someone ever install the sender-id in postfix? I can not install it, I do not know how to install it. Thank you very much, if someone can help me..
0
votes
0answers
29 views

CentOS 7 stuck email, unable to send from Mailer-daemon to self

I have a web server that is responsible for serving a web application. It can also send some email as myname@mycompany.com. Now, there was some mismash between us and the domain owner and because of ...
0
votes
0answers
20 views

Malformed DFIM body signature (postfix)

I am having some trouble with my email server. (postfix/dovecot on ubuntu 18.04 LTS) I am getting an invalidated DKIM body signature. This is what I get from the header. DKIM-Signature: v=1; a=rsa-...
0
votes
1answer
24 views

Postfix: What is the meaning of the non-loopback IPv6 addresses in the default value of mynetworks configuration parameter?

On Postfix 3.1.0, postconf -d mynetworks prints: mynetworks = 127.0.0.0/8 192.168.1.0/24 [::1]/128 [fd6f:721b:f2ec::]/64 [fe80::]/64 What do the last two elements in the list, [fd6f:721b:f2ec::]/64 [...
2
votes
1answer
814 views

Valid DKIM but “body hash did not verify” error on Outlook / Hotmail / Live?

Why do I get dkim=fail (body hash did not verify) on Outlook / Hotmail / Live when I have a valid DKIM setup in place? I've made sure that my SPF, DKIM, DMARC records are set up correctly and the ...
0
votes
1answer
138 views

postfix mail server not responding + connect from unknown

Two days ago, my postfix failed without any actions from me. First, I had an issue with blocked port 25. Now this is now solved: POSTFIX Won't Start says: bind 0.0.0.0 port 25: Address already in ...
0
votes
1answer
311 views

POSTFIX Won't Start says: bind 0.0.0.0 port 25: Address already in use

Sorry, I've read tons of related topics but didn't get solutions for my issue. Suddenly this morning, POSTFIX did not respond. I didn't do anything special in my server. POSTFIX status says : ...
2
votes
1answer
261 views

How to modify Receive header in Postfix

Each Mail Transport Agent that encounters a message adds a Receive header to indicate where, when, and how the message arrived and also some data about the receiver. When I send an email from Mac Mail....
0
votes
0answers
30 views

postfix autoforwarder and autoreply

I’m working on a solution where I need an autoreply and an autoforwarder as well, realized by postfix. I’m duplicating the mail by an entry in the “virtual” like this. recipient_address@doamin1.tld ...
0
votes
1answer
115 views

Where are sent emails stored in Dovecot?

I've followed a tutorial on setting up mail server that uses Postfix, Dovecot and MariaDB. I have successfully sent and received emails. However I am not able to find the directory where sent email is ...
0
votes
0answers
253 views

OpenDKIM-Bad signature issue for all incoming email

Newly made setup postfix with opendkim. When am sending email from my server then checking the DKIM status is PASS. But while incoming email almost every domain DKIM signature is failed by ...
0
votes
0answers
60 views

Replace explicit `virtual_alias_domains` by domains in `virtual_alias_maps`

I have a working Postfix config with some local mailboxes, some local aliases and a handful of purely virtual alias domains. Because I find it tedious to add all to virtual_alias_domains I'm asking: ...
0
votes
1answer
31 views

postfix rewrite a specific from domain address

Postfix version: 2.10.1 We have applications that send mail as app@domain.com. These applications send to a postfix mail server, to relay mails. I would like to rewrite the from address to be app@...
0
votes
0answers
233 views

Postfix: milter-reject: END-OF-MESSAGE from localhost

I'm unable to send mails via Postfix. I have configured opendkim to work with postfix. Postfix status output: root@remote-server:~# systemctl status postfix ● postfix.service - LSB: Postfix Mail ...
0
votes
1answer
54 views

Best way to restrict/manage PHP apps to use my postfix?

I want to allow PHP apps to send mail but under very restricted conditions. And I don't want to allow sendmail-like command for PHP apps (I'm using chrooted PHP and it's too much headache), thus I ...
1
vote
1answer
81 views

Send a percentage or count of emails to another server with Postfix

We are moving our Postfix outbound mail servers into an AWS region. We have the new external IP addresses with neutral reputation and can't move the old ones. We'd like to warm up the new IPs before ...
0
votes
0answers
34 views

postfix not sending some emails

Some mails to root seem to be delivered to my configured address from generic after getting into /var/log/mail.info status=bounced (Command died with status 127: "procmail -a "$EXTENSION"". Command ...