OpenSMTPD is a FREE implementation of the server-side SMTP protocol as defined by RFC 5321, with some additional standard extensions. It allows ordinary machines to exchange emails with other systems speaking the SMTP protocol. It is installed as part of OpenBSD and is enabled by default or is available in a portable format.
Questions tagged [opensmtpd]
18 questions
4
votes
1 answer
What's the proper way to get smtpd (OpenSMTPD) to pick up changes to smtpd.conf?
I'm new to OpenBSD and in the process of learning OpenSMTPD. I would have expected some sort of "restart" option from the smtpctl command, but it only has a stop with no start which might force a reread of smtpd.conf so changes take effect. Outside…

rcampbell
- 1,035
- 4
- 14
- 24
3
votes
0 answers
Multiple relays with OpenSMTPd
We use mailhog in development / testing and hook it up to postfix. It so that if you mail to an email address ending in .external, it will be relayed to a real server. And, if doesn't we relay it to mailhog.
Postfix configuration…

tvlooy
- 130
- 1
- 8
3
votes
1 answer
Avoiding unnecessary bounces with OpenSMTPD on OpenBSD
I am running OpenSMTPD on OpenBSD together with spamd, spampd and spamassassin, DKIMproxy and dovecot. My setup is to handle both local e-mail on the server and (external) email for my domain. My setup seems to be working (still in testing phase). I…

pvswie01
- 31
- 2
3
votes
1 answer
amavisd-new rescans quarantined mails
iam using Opensmtpd on a 14.04.4 LTS Ubuntu with amavisd-new as Mailscanner.
We configured the quarantine so it sends the Virus-Mails to an external mailbox. This works fine until the point amavis has found a virus/spam Mail - it gets sent to our…

Ex1v0r
- 51
- 3
2
votes
0 answers
How is an SMTP-Client supposed to behave if he receives an Error from the Server?
Consider the following SMTP-Session:
220 mx.example.com ESMTP Postfix
EHLO example.com
250-mx.example.com
250-PIPELINING
250-SIZE 10240000
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-DSN
250 SMTPUTF8
MAIL FROM:<>
250 2.1.0 Ok
RCPT…

Subito
- 388
- 1
- 3
- 11
1
vote
1 answer
Dovecot LMTP rejecting mail from address with apostrophe
I have an OpenSMTPD / Dovecot installation on an OpenBSD server. I recently came across an issue where Dovecot LMTP would reject a message sent to a local user from an address which contains a single apostrophe (e.g.…

mike
- 228
- 2
- 7
1
vote
0 answers
How I can look from that script runs sendmail?
my problem is that some script in php or some other script or program is sending spam.
I am not able to trace where this program runs.
do the following:
ps aux | grep sendmail
nginx 28286 0.0 0.0 39316 3328 ? Ss 07:27 0:00 sendmail…

laur
- 127
- 1
- 4
1
vote
1 answer
OpenSMTPD multiple outgoing server hostnames
I'm running OpenSMTPD to receive and send e-mails on FreeBSD. I'm accepting e-mails on a multiple different top-level domains and also send out from multiple different top-level domains (hosting different services on the same server). Now, when my…

Jarmo Pertman
- 111
- 1
1
vote
0 answers
Mysterious/Unknown IPs keep getting whitelisted by spamd
I have an OpenBSD 7.1 mail server running OpenSMTPD with spamd.
I notice mysterious IP addresses in /var/log/maillog, such as:
smtp connected address=162.142.125.222 host=scanner-25.ch1.censys-scanner.com
These IPs keep getting whitelisted in the…

Joe Blough
- 11
- 1
1
vote
0 answers
Personal OpenSMTPd relay fails when using "tls-require", works fine with just "tls"
I'm currently setting up a somewhat unique personal email server using OpenSMTPd. I have a local server (Raspberry Pi) and a remote server (VPS). Emails sent to me are sent to the remote server and are then relayed to my local server. When I send an…

Josey
- 11
- 2
1
vote
0 answers
How to add a catchall address to opensmtpd without disrupting existing aliases
I have a working OpenSMTPD configuration that I am happy with.
I do not have a virtuser file and I do not reference "domain_mail" or virtual anywhere in my config file, which is here:
table aliases file:/usr/local/etc/mail/aliases
filter…

user227963
- 209
- 1
- 2
- 11
1
vote
1 answer
Added dkimproxy to OpenSMTPD ... mail loop when sending to my own domain
I have a nicely working OpenSMTPD configuration and I added dkimproxy to it.
Everything is working nicely and mail-tester, etc., all report that I have proper DKIM signing and my email score is 10/10, etc.
The problem is ...
If I attempt to send an…

user227963
- 209
- 1
- 2
- 11
1
vote
1 answer
LDAP+SSL configuration with OpenSMTPD
I have a working setup with OpenSMTPD 6.6.4 (hosted on a debian 10) that is plugged on a OpenLDAP 2.4.50 server (hosted on a Alpine 3.8), based on this blogpost. It works with plain LDAP connection, but fails with LDAPS.
/etc/smtpd.conf
pki…

azmeuk
- 195
- 1
- 2
- 16
1
vote
1 answer
Can OpenSMTPD relay mail from a whitelisted IP?
I am running opensmtpd and all is well.
Of course I do not run an open relay and I tightly control how mail is sent through the mailserver.
However, my personal mailtool runs on a different virtual machine on the same physical server as the…

user227963
- 209
- 1
- 2
- 11
0
votes
1 answer
OpenSMTPd: Block sender based on "Received" domain
For OpenSMTPd, I would like to block a server from sending me mail based on the domain name of that server. It has a large number of IP addresses all over the place and blocking each individual one is far too much work especially with the massive…