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)

3
votes
0answers
273 views

Postfix pipe always runs as nobody

The problem I would like postfix to pipe emails to a script that operates on files owned by the www-data group located under /var/www/. However, I receive error messages that indicate insufficient ...
3
votes
0answers
420 views

Postfix forwarding - SPF issues - Sender rewrite

When using Postfix virtual alias maps to forward email to another domain, is it possible to have Postfix re-write the sender address exclusively for forwards to avoid SPF rejection at the final ...
3
votes
0answers
177 views

Postfix: Enforce sender address for some users only

I am looking for an option to enforce an envelope sender address in postfix for selected users, only. E.g., I want to permit user1@example.com to send mails as user1@example.com, only, while all other ...
3
votes
0answers
399 views

Don't send outgoing mail via Spamassassin

My e-mail server is running Postfix 2.11.3 on Debian 8.7 (Jessie) with Spamassassin 3.4.0. I realized that my outgoing e-mails are also being checked for spam, which not only seems to be unnecessary ...
3
votes
0answers
186 views

Postfix: Avoiding backscatter when acting as backup MX with unknown valid recipiants

I'm running Postfix 3.1.0, acting as backup MX (i.e. I have relay_domains set) for a domain whose valid recipients I cannot practically know. Thus, I would normally be producing backscatter when I ...
3
votes
0answers
378 views

Postfix failed SPF check

I'm using postfix to send mail from my own domain and postfix-policyd-spf-perl to check SPF. SPF check fail only when I send an email from my own domain to my own domain. In summary : mydomain -> ...
3
votes
0answers
368 views

Strange hack attempt to postfix

Yesterday I got a email sent {@DOMAIN.ORG from my mailserver the mail was marked as spam. The body included scripts download commands like ftp://ftp.ugotownedz.org/upfile2.sh lines from syslog Aug ...
3
votes
0answers
91 views

Postfix STARTTLS works in LAN but not externally

if I connect in LAN on port 25 to my mail server, it offers STARTTLS telnet mailserver.com 25 Trying 192.168.0.x... Connected to mailserver.com Escape character is '^]'. 220 mailserver.com ESMTP ...
3
votes
0answers
894 views

Configure mailgun as relayhost on top of existing postfix server already using sasl

I might be barking at the wrong tree completely here, but I'll ask anyway. I've followed a tutorial to setup a Mailserver on ubuntu 14.04 with postfix, dovecot and mysql. Now I have setup mailgun to ...
3
votes
0answers
175 views

I need help trying to authenticate with AD from my linux machine

I am not experienced in this, so there might be some points that I am missing. Initially I tried to setup Cyrus Mail w/ SASL for AD authentication. After several tries, it failed to work. I switched ...
3
votes
0answers
191 views

Postfix relaying for multiple domains with Amazon SES

I'm a little confused about relaying with Postfix. I added this line to my /etc/postfix/transport mydomain34.com smtp:email-smtp.us-west-2.amazonaws.com I know this is wrong, but this is what I ...
2
votes
0answers
25 views

Rewrite email (RFC822) From address to match MAIL FROM (RFC821) envelope address postfix

I'm taking steps to harden my outgoing postfix SMTP server. I want to prevent users from spoofing their sender address. When sending email with postfix SMTP the sender is identified in three ways: ...
2
votes
0answers
18 views

Postfix relay rules for sender / recipient combo

We have a postfix that lives on a web server and processes mails both from the system (cron mails etc.) and the web application. It sends mails for an own domain and a customer's domain. Mails for ...
2
votes
0answers
99 views

What's the difference between bounce_queue_lifetime & maximal_queue_lifetime in postfix?

Based on postfix official manual, bounce_queue_lifetime Consider a bounce message as undeliverable, when delivery fails with a temporary error, and the time in the queue has reached the ...
2
votes
0answers
55 views

How to deal with outgoing spam flooding with Postfix

I have one Postfix SMTP server with hundreds of users, which are using it to send e-mails as authenticated users. Sometimes one account is hacked and thousand e-mails become to go out from the SMTP ...
2
votes
0answers
97 views

Postfix Conditional redirects

I have a tricky one here! I have a dinamic list of some... 3000 email addresses that I need to filter on Postfix. I need that if any of these addresses sends an email to (support@mydomain.com or ...
2
votes
0answers
43 views

Postfix: restrict outgoing mail sender domains

I have a postfix 3.2.4, listening on port 25 for both incoming and outgoing mail. I know, it would be much better to use 587 submission port, but I can't reconfigure all of the existing email clients ...
2
votes
0answers
42 views

How to restrict the addresses in MAIL FROM?

Good Nighttime, I've a postfix server combined with a mysql-database for address management. There is a table mapping the users and their mail addresses. e.g. |user|mail@domain.tld| |user|mail2@...
2
votes
0answers
53 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 ...
2
votes
0answers
100 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 ...
2
votes
0answers
153 views

on postfix reject mail if envelope recipient != header To

So, for certain envelope recipients, I'd like to check if there is a matching TO header, and reject the email if it doesn't exist. I think I'm getting into filter territory here - or perhaps a ...
2
votes
0answers
40 views

Email messages arrives without DKIM, and as spam, when I send from a specific network

In a specific case, when I send an e-mail message through thunderbird, the message arrives without the DKIM key and identified as spam at the source: X-Virus-Scanned: amavisd-new at mailserver....
2
votes
0answers
76 views

NGINX - My site has a webmail subdomain even though I never set one up. How do I redirect all webmail.domain.com requests to www.domain.com?

I have multiple nginx sites running on a Digital Ocean droplet. I've installed postfix as a relay to G Suite Gmail. I only access my email through Gmail itself. So I don't need webmail. Nor have I ...
2
votes
0answers
2k views

Sender address rejected: Access denied (in reply to RCPT TO command))

My email server has been ok for months now, since today my server would not receive any emails, I could send though. I seem to have fixed that by disabling and enabling UFW, not sure why that works ...
2
votes
0answers
184 views

spamassassin + postfix doesn't work without log files

ps aux|grep spamd root 12207 0.0 1.0 159920 83460 ? Ss 17:38 0:01 /usr/sbin/spamd -d --pidfile=/var/run/spamassassin.pid --create-prefs --max-children 5 --helper-home-dir root ...
2
votes
0answers
17 views

clients (imac's) not able to contact 587 submission port

I'm having this weird problem with my imacs not being able to contact postfix. My macbook and iphone work fine, and they are on the same network. Iphone had similar problems for a while, but magically ...
2
votes
0answers
83 views

Prevent postfix from trying secondary MX after soft bounce from Google MX servers

My local SMTP relay is finding it increasingly difficult to deliver mail to my G-Suite groups and users. The volume is not very high, but Google enforces rather low limits on incoming e-mail from ...
2
votes
0answers
363 views

Postfix, virtual aliases and UTF8

The Postfix documentation reads By default, Postfix sets the "SMTPUTF8 requested" flag only on address verification probes and on Postfix sendmail submissions that contain UTF-8 in the sender ...
2
votes
0answers
344 views

< hostname[private/dovecot-lmtp]: 550 5.1.1 <alias@domain.tld> User doesn't exist: alias@domain.tld

This is the setup of my mailserver: Big picture: MTA: Postfix 2.11.3 - MDA: Dovecot 2.2.13 - DB: Postgres 9.4.10 - OS: Debian 8 Jessie, kernel 3.16.0-4 postconf -n alias_database = hash:/etc/aliases ...
2
votes
0answers
257 views

postfix/proxymap: request for unapproved table

I get this in my maillog Jan 14 13:48:58 ovz postfix/proxymap[25328]: warning: request for unapproved table: "btree:/var/lib/postfix/postscreen_cache btree:/var/lib/postfix/postscreen_cache ...
2
votes
0answers
190 views

How to use old md5 password hashes on courier/postfix

I've recently installed courier/postfix with virtual users and domains and i want to move mailboxes from an old server. The problem is that the old server used to use md5 password hashes in the ...
2
votes
0answers
2k views

IMAP/POP3 with Dovecot & Postfix: Authentication Failed

Says it all in the title. To give you some background, I'm a programmer. I'm not into installing mail servers as a hobby, and I'm having to make one because the project I'm creating will need to use a ...
2
votes
0answers
114 views

Postfix doesn't send email, only receive

I recently install on my Debian Server the PostFix + Dovecot + Mysql, everything works fine, but I cant send email, I receive the error on the log NOQUEUE: reject: RCPT from unknown[##.4.##.41]: 454 ...
2
votes
0answers
183 views

postfix connection timed out inbound port 25

i have a "small" problem with incoming email from certain customers. in 2 occasions i got xxx.xxx.xxx.xxx:25 Connection Timed Out. however port 25 is open, also in ufw allowed. i can even telnet and ...
2
votes
0answers
474 views

How to stop Postfix from forwarding SPAM without blocking local users' SPAM?

Some of my users have aliases in /etc/postfix/virtual that forward to other providers (mostly gmail). I believe that the fact that all mail is forwarded (even SPAM) is causing reputation issues for ...
2
votes
0answers
122 views

Why is REDIRECT header_check creating a CC

I configured Postfix with a custom before-queue filter script (fuglu) which inspects every incoming email first, and then adds the following header: X-Fuglu-Test: Test Email In postfix, I ...
2
votes
0answers
284 views

System reboot results in T_DKIM_INVALID spamassassin

I have installed and configured OpenDKIM in my Ubuntu 16.04 digitalocean vps and enabled the DKIM Plugin in SpamAssassin with loadplugin Mail::SpamAssassin::Plugin::DKIM in one of the .pre files ...
2
votes
0answers
262 views

Prevent misdirected bouncebacks from forwarding server

Note: This question is a duplicate of Avoid creating backscatter on a Postfix forwarding server, for which the only answer was "sorry, nothing you can do", but I provide more detail here, consider ...
2
votes
0answers
3k views

Dovecot/Postfix mail server SASL: Connect to private/auth failed

Trying to get this mail sever up has eaten up a good chunk of 2 days and I've made some headway but this specific error has persisted throughout. I'm using a Debian server with Postfix + Dovecot + ...
2
votes
0answers
436 views

Postfix filter incoming mail

Currently I have a Postfix setup on a CentOS machine. It has multiple virtual_alias_domains and virtual_alias_maps = hash:/etc/postfix/virtual. There are multiple entries in /etc/postfix/virtual like:...
2
votes
0answers
245 views

How can I customize before-queue milter replies in Postfix?

Currently I use postfix with spamass-milter and clamav-milter as before-queue milters, which both work very well. I reject hundreds of messages a day on my small personal mail server on the basis of a ...
2
votes
0answers
1k views

SSL_accept error with postfix oportunistic STARTTLS

I have configured postfix 2.6.6 on centos 6 as a mailrealy in front of an exchange 2010 server. Things work. Now I would like to add oportunistic encryption to incomming and outgoing mail. At least ...
2
votes
0answers
39 views

Debian Postfix distribution list accessible only for few adresses

Actually I'm working with Postfix server and trying to implement distribution list with simple restrictions. My assumptions: I created alias: managers@mydomain.com -> manager1@mydomain.com, manager2@...
2
votes
0answers
33 views

PostFix/Dovecot new installation on Centos6

I have installed Postfix and Dovecot on my server. It seems to be mostly working - I can send mail from my account to a remote account no problem. My problem is receiving it. When I send an email ...
2
votes
0answers
52 views

Postfix: deleting emails with recipient not in virtual_alias_maps

I'm getting a lot of spam for recipients that don't exist on my domain. I'm forwarding email on this domain to various external addresses for my family by using virtual_alias_maps. To prevent these ...
2
votes
0answers
1k views

How to detect SMTP AUTH attempts in Fail2Ban?

I have a Fail2Ban jail that monitors failed SASL authentications to my Postfix SMTP server. When this occurs, /var/log/mail.log contains these three lines: postfix/smtpd[32591]: connect from unknown[...
2
votes
0answers
584 views

Postfix sending mails hundreds of times to e-mail address hosted on plus.net

I have a Postfix mail server handling mail relay for web sites. It's working perfectly and delivering hundreds of mails every day without issues. In the past few months, there have been 4 occurances ...
2
votes
0answers
552 views

Configure Postfix to route to specific IP based on the recipient MX record

I have Postfix running on a VPS with Ubuntu 12.04, the server has multiple IP addresses. I want to configure Postfix so that it will route mail to send via one of these IP's based on the MX record of ...
2
votes
0answers
4k views

postfix: lost connection after CONNECT/EHLO/unknown from unknown

seeing following error message while trying to send email via postfix on Centos 7 while I can receive and download messages not seeing any errors postfix/smtpd[24532]: connect from unknown[5.31.230....
2
votes
0answers
1k views

Postfix fails to verify GMail's DKIM signature

I have my Debian (7.9 "wheezy") E-Mail-server (Postfix 2.9.6-2) setup to sign and verify DKIM signatures in e-mail messages using OpenDKIM (version 2.6.8-4). My server passes the DKIM test at GMail ...