Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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)

1
vote
0answers
36 views

fake emails with multiple addresses in “From:”

I receive fake emails with several addresses in "From:". For example: Return-Path: <karen@reachouttransport.co.zw> X-Original-To: Delivered-To: Received-SPF: None (mailfrom) identity=...
0
votes
1answer
21 views

Prevent Postfix from accepting any emails sent by domains in “mydestination” from outside “mynetworks”

On our mx's we looked for a way to prevent those servers from receiving certain faked mails. Those faked mails come along using sender addresses my servers are handling and are responsible for, the ...
0
votes
0answers
9 views

postfix header check replace from without at sign

I want to replace the from field if it does not contain the @ sign: if /^From:/ !/^From:.*@/ REPLACE From: no-reply@example.com endif Testing the regex looks promising: postmap -q "From: foo" ...
0
votes
0answers
8 views

Sending attachments with GNU mail to @kindle.com [migrated]

Background: I'm trying to set up a server to regularly pull RSS feeds, package them up in a mobi-ebook and send them to my kindle. Problem: If I configure the server to send to my @kindle.com email ...
3
votes
1answer
27 views

Write permission on file is NOT granted when used by postfix

I have to change my working platform from Ubuntu to Centos7. My script is working fine on Ubuntu but not yet on Centos. My script is supposed to update the /tmp/CheckAccessRight.log file, when the ...
1
vote
0answers
10 views

Serialize mail filter on Postfix+Maildrop

I have a Postfix server, which uses Maildrop as filter. The filters send message data into a database. At the moment I have some strange errors: some mails will be delivered, but the processing will ...
1
vote
0answers
20 views

Postfix: How do you configure postfix to manage a list of banned destination emails ie with smtpd_recipient_restrictions

We basically want to avoid sending several emails to destination email addresses that have already been bounced. I have a list in a database (currently sqlite, and also a flat file) of banned email ...
1
vote
0answers
18 views

What is wrong with this e-mail which is failing SPF(mailfrom) and DMARC?

This is a follow-up from "Why is my opendmarc failing pretty much everything that comes through?". I'm really struggling to understand what is going on. Outgoing mail is verified correctly by the ...
2
votes
1answer
33 views

Forged FROM: header despite reject_authenticated_sender_login_mismatch

structural description Server A runs postfix and acts as smarthost for server B (also running postfix), reject_authenticated_sender_login_mismatch is set and works (almost) as expected, see below ...
1
vote
0answers
13 views

Does postfix natively included in Centos 7 support mysql?

I read this post,mentioned: The version of Postfix included in the main CentOS repository does not include support for MariaDB; therefore, you will need install Postfix from the CentOS Plus ...
1
vote
0answers
25 views

Can't connect Postfix to AWS MySQL RDS over SSL SSL_CTX_set_default_verify_paths

I'm trying to set up a mail server with Postfix (3.3.0) with virtual domains, queried against an Amazon RDS MySQL (8.0.11) instance, with SSL between the mail server and the RDS instance. I'm just at ...
1
vote
0answers
34 views

Postfix: proper configurations - main.cf, DNS, DKIM

Inherited an Ubuntu server (12.04) running Postfix (2.9.6) that works as an outbound-only mail relay for a web application. Have got SPF and DMARC records entered in public DNS (Route53). Working to ...
5
votes
1answer
118 views

Why is my opendmarc failing pretty much everything that comes through?

I have this domain for which I set up SPF, DKIM, and DMARC stuff. Let's pretend the domain is example.com which has the following entries in its DNS zone: example.com. 600 IN MX ...
-1
votes
0answers
5 views

postfix append myhostname with sender address

How to append myhostname with sender From address in postfix. I tried something this smtp_generic_maps = regexp:/etc/postfix/generic nano /etc/postfix/generic /.*/ <my_sender_account>@...
0
votes
1answer
38 views

Postfix error while sending through MS Office 365

I have configured the Ms office 365 in postfix. But am facing the error while sending an email. Here is the log. AD0C147573: lost connection with smtp.office365.com[40.97.188.242] while sending RCPT ...
0
votes
1answer
44 views

Open Port 25 for Message Receipt Only in Postfix

I have configured Postfix as an SMTP server, running on a non-standard port, using TLS, with relay. However, I want to add the ability to receive mail directly to the user accounts on the system, and ...
2
votes
2answers
215 views

Postfix email server not receiving email from external email

I'm trying to set up a mail server on Ubuntu 16.04.5 LTS with Postfix and Dovecot. I can send out email without any problem and mail sent from localhost also finds its way into the inbox. However, ...
0
votes
0answers
20 views

postfix regexp header check fails when if statement included

Short story short: I have several users that I need to append text into the subject line when they are the recipient. Despite lots of reading and following many examples (ie, Rewrite "from" ...
-1
votes
1answer
21 views

What's the difference between `dovecot-lda` and `deliver` in master.cf of postfix?

In master.cf of postfix, after dovecot unix - n n - - pipe, I always add : flags=DRhu user=vmail:vmail argv=/usr/libexec/dovecot/dovecot-lda -f ${sender} -d ${...
1
vote
0answers
19 views

Configure postfix to send emails per domain from each virtual server

In my setup I have installed virtualmin for virtual servers. I have following virtual servers with their own dedicated ip address. Postfix is configured as per this method to use dedicated ip for each ...
0
votes
0answers
27 views

postfix/smtp fatal: garbage after numerical service

i have problem with postfix, amavis (iredmail). I have 200 mail in queue at couple days. If i want flush i have i in log file: Oct 27 12:08:20 postfix/qmgr[20923]: CA731868F520: from=<mo@pppp.com&...
0
votes
2answers
35 views

Postfix log to MySQL [closed]

I would like to log datetime, sender and recipient to a MySQL table for all mail send through Postfix/Dovecot (virtual users setup). How can this be done? Best regards.
3
votes
1answer
85 views

Postfix: How to limit outgoing messages (smtp) while sender_dependent_default_transport_maps is enabled?

I would appreciate and thankful if anybody could suggest me regarding the following issue I am dealing with for the last 7 days. Current Condition: 1 working mail server (collocation) that host for ...
-3
votes
1answer
21 views

Postfix forward email to my gmail from a gmail failed

I am not possible to forward email from gmail account to a gmail. I come across with below link which telling that gmail is blocked to stop looping. https://superuser.com/questions/332389/postfix-...
1
vote
1answer
17 views

Postfix: Email Forwarding - Relay Access Denied

I have a system that we've setup as a mailserver to forward all email that comes into it for that domain to other external email addresses. I've been digging around and found this tutorial which I ...
1
vote
1answer
24 views

Should SPF added to smtpd_sender_restrictions or smtpd_recipient_restrictions?

I am using postfix+dovecot in centos 7. I use postconf -e 'smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination,reject_invalid_hostname,...
2
votes
0answers
30 views

Postfix : How to hold failed sent message instead of reject it

Can i edit the attachments list (add more files, delete selected attachments), after got an error report (Message not sent. Server replied: Requested mail action aborted: exceeding storage allocation ...
3
votes
1answer
78 views

Accessing mail body on postfix check_policy_service event

I followed postfix documentation to set up a script that I can use to write custom filters on incoming mail on the check_policy_service event and it works just fine, but I cannot access the email body ...
3
votes
1answer
33 views

Log username in maillogs when there is SASL authentication failure

I have a server with postfix and cyrus-sasl. When ever there is an authentication failure it reports in maillog below line. postfix/smtpd[27669]: warning: unknown[185.xxx.xxx.xxx]: SASL LOGIN ...
0
votes
1answer
75 views

Postfix 'too many errors' after many RSET commands

I have a client who is complaining that their invoice emails are not all being sent out correctly. As far as I'm aware their invoicing software is designed to send emails directly. Looking at a ...
0
votes
1answer
40 views

Postfix IPv6 Relay access denied

I recently set up my postfix server with both ipv4 and ipv6. I am noticing that whenever my other server is sending the emails and it is received by the postfix server on ipv6, it is logging a "Relay ...
0
votes
1answer
38 views

How to interpret the debug output from Amavis->Spamassassin?

Could please someone explain how Spamassassin build the following strings: Oct 17 14:00:30 server amavis[29497]: (29497-02) SA dbg: uridnsbl: domain amazonaws.com in skip list, host sns.eu-central-1....
1
vote
0answers
49 views

opendkim on lokal net not working

I have a assignment in school to setup bind9, postfix, spf, dkim and dovecot on the same machine for the address mcduckcorp.duckburg.cali on a Debian 9 OS. I have managed to setup bind9, postfix and ...
1
vote
1answer
35 views

Postfix bounce when unable to validate TLS option

I'm using postfix as mail transfer agent on my mailgateway to send and receive emails. Because I'm communicating with sensitive information I'm using the tls options to validate the receivers mx. He ...
1
vote
1answer
40 views

How to make Postfix require authentication for internal mail?

I'm receiving mail from phishers using fake local addresses I understand that mails originated in mynetworks doesn't require authentication (for cron jobs and the like), but shouldn't someone in ...
0
votes
2answers
83 views

One domain with multiple MX servers and forwarding instead of erroring

I have a domain with few hundred email addresses. We are migrating our hosting to multiple ISPConfig servers. My problem is if someone sends email to email@domain.example and if the email does not ...
1
vote
1answer
27 views

sender_dependant_default_transport_maps not being used by postfix

Intent We are trying to use the sender_dependent_default_transport_maps feature of postfix to use different SMTP relays based on the from address of a mail. The goals are: allow our partners to use ...
0
votes
1answer
23 views

Postfix is appending myorigin to non-FQDNs despite “append_at_myorigin = no”

I have postfix and a local LMTP server running. In my main.cf, I have append_at_myorigin = no. When I run postconf|grep append_at_myorigin I get that this value is no. But for some reason, postfix is ...
0
votes
1answer
42 views

POSTFIX / DOVECOT: limit the number of connections per user per minute

I have a virtual user that checks his mails every minute per imap, using 4 phones and 2 laptops and a tablet. how can I limit the connections per user? I do not want to limit the connections per IP.
0
votes
0answers
31 views

SMTP mail error 452-4.3.1 with plenty of available storage. Postfix [duplicate]

So I have the same error described in this question: smtp mail error 452-4.3.1. insufficient system storage coming from a client connecting to postfix on an Ubuntu14.04 server. Also this one Postfix ...
0
votes
1answer
63 views

postfix mailserver auth failed

I have an postfix + amavis mailserver, everything works fine except that somehow I will receive an spam email from me to me... so I dig and I make the following mods: vi /etc/postfix/main.cf ...
0
votes
0answers
17 views

Feedback in terms of security/spam/performance (Postfix and Dovecot config)

I would like some feedback on my Postfix and Dovecot configs. I collected the following configuration over the past year and would like to know if it all makes sense. Please be critical, I would like ...
1
vote
0answers
63 views

Backscatter relay from Postfix backup mx server causing spam (553 5.7.1)

I have 2 Postfix Servers MAIN.mail.example.com BACKUP.mail.example.com Problem scenario: If spammer sends email from "me" to me directly to BACKUP, server forwards it to MAIN MAIN server reject ...
0
votes
0answers
25 views

postfix & multiple domains as mail host

Is there any way to make postfix to listen on multiple hostnames like mail.domain1.com mail.domain2.com mail.domain3.com ? I used iRedMail for email server and trying to connect to smtp from remote ...
0
votes
0answers
17 views

How to forward all email that arrived on my server domain's to my personal gmail account?

I'm using postfix cwp that forward all emails to my personal Gmail account. But the problem occurs for me that I am using mailjet (relay mail server) mailjet allow to send email through only emails ...
0
votes
1answer
43 views

Is changing the hostname on a remote Ubuntu 16.04 safe?

When installing a Postfix mail server I learned that the hostname is an important part of the servers FQDN. But the servers hostname is not related to the domain name I'm hosting or the SSL cert ...
0
votes
1answer
19 views

Complete information into Postfix logs

I'm succesfully using Postfix on Debian to relay my internal e-mail and I am sending logs from the mail.log file to a Logstash instance, and I am showing them on a Kibana dashboards to look for not ...
1
vote
0answers
23 views

Postfix: do not create bounce message for virtual_alias_maps with remote servers

I am using virtual_alias_maps to forward mail to remote mail servers (GMail, icloud). I have spam prevention in place myself (SPF checks, Before-Queue Content Filter etc), but often enough spam will ...
0
votes
0answers
14 views

Postfix sender_dependent_relayhost_maps by forwarding address

Currently I am running a postfix server that acts as an mta for 5 different brands. Each domain attaches to a different network interface on the machine. Currently receiving mail works fine and ...
1
vote
1answer
85 views

Postfix 451, 4.3.0 : Temporary lookup failure

we've followed the guide HERE to configure a Postfix. After sending a message via telnet we receive the following error: Oct 8 18:52:01 mail postfix/smtpd[3719]: connect from unknown[10.10.10.9] Oct ...