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)

Filter by
Sorted by
Tagged with
0
votes
0answers
20 views

How to make Roundcube work with Postfix + Courier (not dovecot)

I have a mail server working ok with Postfix+Courirer+MySql (virtual users), and SquirrelMail, I could never configure SqMail properly for message characters sets, so I would like to give a try to ...
0
votes
1answer
57 views

SMTP header rewrite rules

We have an SMTP relay (postfix) where we need to rewrite headers on the fly based on certain criteria: if> header contains x-custom-header: type 1 and if> to: @customer1.com rewrite> from: <no-...
0
votes
0answers
11 views

restrict sending mail to same sub domain for virtual users in postfix

I finished installing mail server with virtual users with centos dovecot and roundcube. Everything is working fine. I want to restrict users from sending email to different sub domains. How to ...
0
votes
0answers
29 views

Restricting sender and recipient with check_sender_access on postfix

i want to restrict sending mails for local senders and domainusers. I want to allow the domainusers to send mails to the Internet and the local domain(domain.de) and the local sender(like root@local ...
0
votes
4answers
105 views

Dovecot can not detect user

System specification: Ubuntu 18.04, Postfix 3.3.0, dovecot 2.2.33.2 I followed this vimbadmin guide. But not successful. Dovecot does not detect mailbox. I ran this code: postmap -q fandi@mysite....
1
vote
0answers
24 views

Reject email if From address matches and if content matches as well (Postifx)

I'm trying to setup a rule in my postfix configuration where I check the from address and the email content. My idea is to REJECT mail if: From: test@test.com Content: Hello Test Is there anyway to ...
0
votes
0answers
16 views

Why do I receive spam after setting postfix to redirect incoming mails to other user based on receiver address?

So far my main.cf contained, primarily, two following lines: local_recipient_maps = luser_relay = mrjoe@mydomain.com These settings are responsible for delivering all emails sent to any address in ...
0
votes
0answers
41 views

How to block email if sender doesn't match reply-to address? [postfix]

Currently our company is getting more and more spam. For a small company we had to block all incoming spam from chinese IPs, which blocks around 500 spams per week which is alot, as we're a local ...
0
votes
0answers
96 views

Postfix pix workaround for short mail work fine, but for long mail not worked

My postfix send email without problems. But one client domain enabled PIX workarounds. If mail message is short mail send without problems. But if mail is long - in log file I see " conversation with ...
0
votes
0answers
49 views

Mailserver postfix+dovecot: use multiple certificates/combine certificates?

UPDATED TO CLARIFY OK, so I have this Postfix/Dovecot combo running nicely, using virtual domains and virtual users through mysql. Now the problem is to provide TLS I have to point my users to my....
0
votes
0answers
44 views

fail2ban-regex testing - regex string matches but in config misses

I'm adding a custom regex string to postfix.conf for Fail2ban 0.10.2 When I test the regex using: sudo fail2ban-regex -v /var/log/mail.log "disconnect from \w*\[<HOST>\] ehlo=1 auth=0/1 rset=0/...
1
vote
2answers
57 views

How to combat/prevent repeated unauthorized attempts to login to my postfix server?

I recently setup my first postfix server and am loving life. :) But, today I logged into the server to debug some connectivity issues that ended up being on my end, and noticed in the mail log that ...
0
votes
0answers
21 views

My dovecot can’t receive email in Ubuntu 18.04

My Linux version is Ubuntu 18.04, postfix work well. After some dovecot configuration, when I type netstat -ntl I found that port “993” and “995” in the displayed list. And I type telnet localhost ...
0
votes
0answers
43 views

Postfix setup on mail.example.com for example.com - how to bounce mails sent to @mail.example.com?

I have postfix running on a dedicated mail server connected to mail.example.com. I want to use it to send/receive mail from example.com only. I have everything setup and working as desired. Mails ...
0
votes
0answers
33 views

How to integrate Postfix & Dovecot into each account directory structure on VPS that hosts multiple domains?

So, I've a VPS that hosts multiple domains with a directory structure that looks something like this: /srv/user/log # For server logs /srv/user/php # PHP related things (OPcache etc.) /srv/user/www # ...
0
votes
0answers
20 views

Postfix: resend mail back to sender when forwarding

I have a poor-man's mailing list implemented as a .forward file on an email account list-address@example.com Its .forward file contains: alice@example1.com bob@example2.com If Alice sends emails to ...
0
votes
1answer
62 views

Can't telnet to Postfix SMTP server after adding smtpd_sasl_auth_enable option

I have the Postfix SMTP server installed on my CentOS 7 machine on port 25. To test that it's working, I connect to it using telnet, like this: # telnet localhost 25 and the result is: Trying ::1....
0
votes
0answers
66 views

postfix handoff to dovecot, status=bounced (user unknown)

I am going through the process of setting up a mailserver. I've written e-commerce, OOP, JS goodies etc. and this is the most difficult and comprehensive trial I've gone through so far. I have set ...
0
votes
1answer
83 views

postfix/qmgr error - connect to private/dovecot No such file or directory

I have a Ubuntu 18.0.4 bionic with postfix and dovecot and dovecot-mysql installed. Receiving the errors shown on lines 1 and 2: Jul 4 15:58:05 mailer postfix/qmgr[11870]: warning: connect to ...
0
votes
0answers
35 views

Sending out-of-office emails (Postfix+vacation) but avoid backscatter as much as possible

I'm debugging a Postfix mail server where users need to send out-of-office emails when they go on vacation. Currently a .forward file gets placed into user home directories \user@example.com, "|/usr/...
0
votes
1answer
34 views

How can I get my incoming mail working again?

We are using webmin and virtualmin the emails have been working great over the last couple of weeks using virtualmin but today suddenly they have stopped. I get this in my mail log: Jul 1 13:15:03 ...
0
votes
2answers
85 views

Postfix Delivery failure

I have a problem with my mail server (Postfix+Dovecot) which can receive but sadly can not deliver mails! For information, the server is running on Debian 9 and is hosted by OVH. Here are the /var/...
1
vote
2answers
114 views

Postfix: unused parameter for mysql maps

I need to re-configure Postfix from scratch. When I configured on version 2.11.8-1.4 everything worked fine. Now I am configuring version 3.3.1 on openSUSE Leap 15.0. I noticed that when postfix works ...
0
votes
1answer
47 views

Why shouldn't LDAP support inequality searches on shadowExpire?

When I try to search my OpenLDAP 2.4.42 server for (shadowExpire<=18074), I get no results. However, a search for (shadowExpire=12671) yields several results. My ultimate goal is to periodically ...
0
votes
1answer
60 views

Don't use relayhost for a single domain (sender/from)

I'm trying to send one domain based on the sender (from) out directly to the mx of the recipient. However the following doesn't work: main.cf relayhost = ses.amazon.com ...
0
votes
0answers
53 views

EC2/EIP email flagged as spam

My company is delivering email out of an ec2 instance using Postfix, but messages are sent to the spam folder in all major providers (Gmail, Outlook, Yahoo). We have an EIP associated with this ...
0
votes
1answer
62 views

Merge ~/Maildir between two servers that use system accounts

I have looked at the following and didn't see a solution to my issue: Migrating from any IMAP/POP3 server to Dovecot Creating Dovecot Master users/passwords doesn't work Move Maildir safely on ...
0
votes
2answers
84 views

Postfix generic changes causing DKIM permerror

We have modifed the Return-Path: and Reply-To: sections of our email by doing the following: /etc/postfix/main.cf smtp_generic_maps = hash:/etc/postfix/generic /etc/postfix/generic bounce@...
1
vote
1answer
53 views

Postfix (Imap) with Dovecot: no auth available

I'm using Dovecot to get Imap access to my mail server (on Raspbian). I'm using system users and am able to successfully test logins (doveadm auth test ...). But I'm not able to get auth option via ...
0
votes
1answer
95 views

Postfix: fail2ban and iptables bans don't stop connections and authentication attempts

I'm running Ubuntu 16.04.6 LTS with Postfix 3.1.0 and fail2ban 0.9.3. Nowadays my /var/log/mail.log is constantly polluted with bruteforce attempts like this: postfix/submission/smtpd[2282]: connect ...
0
votes
0answers
50 views

Postfix - block by sender email domain ip

For some time now I receive a lot of spam emails. The emails are all different but if I lookup the domain of the email address it always resolves to the same IP address. So: xyz@domain1.tld -> ...
0
votes
2answers
208 views

Subject: status=bounced (Host or domain name not found. Name service error for name=e-address.myserver.com type=A:

I wanted to send a message using seamonkey mail but it didn't worked. The server is redhat 7.6 with postfix 2:2.10.1-7.el7. The Firewall are disabled on linux server. I'm giving you the following ...
0
votes
1answer
724 views

“unsupported dictionary type: pcre” postfix header_checks

I have the following header_checks in place on Postfix /^Received:/ IGNORE /^X-Originating-IP:/ IGNORE /^X-Mailer:/ IGNORE /Message-Id:\s+<(.*?)@www.mainserver.com>/ REPLACE ...
-1
votes
1answer
81 views

What does postfix do when receiving emails?

Okay, so here's the situation: I'm new to this, but after a few days of Googling I finally managed to successfully setup postfix on a server. I use two subdomains for email. The first subdomain is ...
2
votes
1answer
88 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: ...
0
votes
1answer
22 views

Postfix relay through Mailgun not recieved in GMail

I've set up an Postfix server to relay email through Mailgun to Gmail. It took some puzzling by I managed to have e-mail from my workmail get relayed through postfix to Gmail once. However, subsequent ...
1
vote
2answers
220 views

Dovecot / Postfix cannot allocate memory

i have an VPS with 8GB memory and running on Ubuntu 16.04.02 with Plesk Onyx. Since a while regularly the system crashes on dovecot and/or postfix. Dovecot version: 2.3.4.1-ubuntu16.04.19031416 ...
0
votes
0answers
54 views

Dovecot doesn't find mailboxes containing plus sign

I'm running a Postfix/Dovecot setup and some of my users use + signs in their addresses (not using the postfix recipient_delimiter). It's not possible to send emails to them, because the mailboxes are ...
0
votes
1answer
105 views

Prevent from being spoofed by sendgrid

Recently we received an odd mail coming from adress1@company.com to address2@company.com The problem is that address1 didn't send any email to address2. The email was sent using sendgrid. Sendgrid ...
0
votes
0answers
28 views

How to apply amavis for all local postfix senders?

I'm using Postfix 3.1.0 on Ubuntu 16.04 and am trying to get amavis to filter my outgoing mail both from sasl authenticated users and for mail forwarded from the server via procmail, using a policy ...
1
vote
1answer
178 views

Postfix combinations of TLS/STARTTLS and ports 465/587

I'm setting up a barebones Postfix mail server and have this observation: TLS works on port 465 STARTTLS works on port 587 TLS does NOT work on port 587 STARTTLS does NOT work on port 465 Is this ...
0
votes
0answers
44 views

Multi domain SRS for Debian?

How to set up SRS with multiple domains on Debian? I've tried postsrsd but it handles only one, hardcoded domain. I need something that handles many domains on one server (postfix + mysql setup).
1
vote
0answers
23 views

How to record failed ssh and email logins (usernames and passwords?)

I have a Debian VPS and I get a bunch of failed ssh/email (postfix, dovecot) login failures. In the logs I can see the username, but not the password. Is there a way to monitor both? Log examples: ...
0
votes
1answer
14 views

Postfix rate lintiing for locally sent emails

I want to use postfwd or similar to limit the hourly rate of messages outbound from a mailing list server on the same system. Since local messages are injected with postdrop and bypass smtp, no amount ...
0
votes
0answers
12 views

Postfix man.cf not setting smtpd_recipient_restrictions

Using newly built from source Postfix 3.4.5, nothing I do results in any values being given to smtpd_recipient_restrictions in main.cf. I believe I have the format correct, as it worked with a ...
0
votes
0answers
22 views

when I have multiple instance of postfix,how to send mail with specified instance with MUTT

I have Multiple instance of postfix in a server, how to send mail with a specified instance with MUTT. For example, use postfix-2(one of the instances) to send mail with mutt, not use the default ...
0
votes
0answers
18 views

postfix outgoing smtp tls for some domains only

in a shared environment default value "smtp_tls_security_level=may" is may. but we have 3 domains that want to send out only tls secured mails. is it possible to select some of outgoing domains use ...
0
votes
0answers
38 views

how to setting BCC outgoing email for mulitple sender address to multiple address bcc with postfix [duplicate]

Hi i had the zimbra email server (using postfix for MTA system). I want to setting BCC outgoing email for multiple sender address to mulitple address bcc. I try follow step pre below URL on topic "...
0
votes
0answers
42 views

Postfix adding (root) after Sender Address Bounced Email

Postfix adds (root) after sender email address so it bounces. How do I remove the (root) after the email address? I'm using generic mapping and (root) is not part of the email address in the file. I ...
0
votes
0answers
55 views

amavisd-new: Disable a specific virus scanner for certain users (senders / recipients)

I am running a mailserver with postfix and amavisd-new. I use a clamAV virus scanner (with sanesecurity signatures). So far, everything is working fine. Now, I want to block emails that have an MS ...