OpenSMTPD-Logwatch script.

2018-04-27 Thread Reio Remma
Hello all, I've whipped together a Logwatch script for OpenSMTPD. I've anyone is interested on giving it a try, it's now at: https://github.com/whataboutpereira/OpenSMTPD-Logwatch For now it's rather spammy, because I haven't implemented any limits for the lists and I've yet to decide

Re: How to text that TxRep is working?

2018-05-22 Thread Reio Remma
On 23.05.2018 6:01, Philip wrote: I've added TxRep to spamassassin and set in my local.cf. Following the instructions: http://truxoft.com/resources/txrep.htm # TXTREP use_txrep 1 Is there a way to test that it's actually working? Phil You should start getting TXREP=0.248 etc. in

Re: OpenSMTPD new config

2018-05-24 Thread Reio Remma
Wonderful! It's making me want to dabble with OpenBSD: :) I looked at the new man page, but it's not entirely clear to me if we'll be able to reject mail to non-existent users outright before relaying to spam checking etc. with the new syntax. Thanks! Reio On 21.05.18 19:52, Gilles Chehade

Re: OpenSMTPD new config

2018-05-24 Thread Reio Remma
That's exactly the problem. Alias resolution wasn't possible before with relay and I'm wondering if it will be in the future. :) Reio On 24.05.18 15:50, Gilles Chehade wrote: Anything the previous configuration allowed is still working. On Thu, May 24, 2018 at 03:48:02PM +0300, Reio Remma

Re: OpenSMTPD new config

2018-05-24 Thread Reio Remma
On 24.05.18 16:14, Reio Remma wrote: On 24.05.18 16:07, Gilles Chehade wrote: On Thu, May 24, 2018 at 04:01:32PM +0300, Reio Remma wrote: On 24.05.18 15:55, Gilles Chehade wrote: On Thu, May 24, 2018 at 03:53:14PM +0300, Reio Remma wrote: That's exactly the problem. Alias resolution wasn't

Re: OpenSMTPD new config

2018-05-24 Thread Reio Remma
On 24.05.18 16:07, Gilles Chehade wrote: On Thu, May 24, 2018 at 04:01:32PM +0300, Reio Remma wrote: On 24.05.18 15:55, Gilles Chehade wrote: On Thu, May 24, 2018 at 03:53:14PM +0300, Reio Remma wrote: That's exactly the problem. Alias resolution wasn't possible before with relay and I'm

Re: OpenSMTPD new config

2018-05-24 Thread Reio Remma
On 24.05.18 15:55, Gilles Chehade wrote: On Thu, May 24, 2018 at 03:53:14PM +0300, Reio Remma wrote: That's exactly the problem. Alias resolution wasn't possible before with relay and I'm wondering if it will be in the future. :) aliases resolution with relay will not be possible because

Re: Dkim problems

2018-06-08 Thread Reio Remma
On 09.06.2018 2:39, flipchan wrote: Hello , im having troubles configuring dkim to sign msgs with opensmtpd, i can send emails with dkim it just loops it and breaks log: Jun 8 20:36:21 mail smtpd[63656]: 1488dfc121f5364b smtp event=connected address=myip host=myhost Jun 8 20:36:22 mail

Rejecting mail from non-existent domains and otherwise.

2018-04-30 Thread Reio Remma
Hello! Does OpenSMTPD have any kind of checking for incoming mail from non-existent domains? I recall our QMail setup rejecting such mails at the doorstep. I'm also curious if it will be possible (with the new dispatcher/rule system) to reject mails to non-existent users before any further

Re: Rejecting mail from non-existent domains and otherwise.

2018-04-30 Thread Reio Remma
On 30.04.2018 20:55, Reio Remma wrote: Does OpenSMTPD have any kind of checking for incoming mail from non-existent domains? I recall our QMail setup rejecting such mails at the doorstep. I'm also curious if it will be possible (with the new dispatcher/rule system) to reject mails to non

Re: Fwd: smtpd.conf configuration error (accept)

2018-07-03 Thread Reio Remma
On 04.07.2018 2:18, Teno Deuter wrote: here is the full 'accept' part I was trying to define in order to receive email from the outside: accept from any \ recipient ! \ for domain virtual \ deliver to maildir "/var/mail/%{user.username}/Inbox" so now I

Re: Fwd: smtpd.conf configuration error (accept)

2018-07-03 Thread Reio Remma
Did you try it with: accept from any*for* recipient ! Reio On 03.07.2018 21:04, Teno Deuter wrote: Thank you for your prompt reply but unfortunately this wasn't the problem :( I renamed to 'blacklistRecipients' and still get the same error message! On Tue, Jul 3, 2018 at 7:57 PM, Reio

Re: Fwd: smtpd.conf configuration error (accept)

2018-07-03 Thread Reio Remma
You need the domain match as well. accept from any for domain example.org recipient ! alias deliver to mbox That works on my test system. Reio On 04.07.2018 1:20, Teno Deuter wrote: just tried and gives a syntax error :( On Tue, Jul 3, 2018 at 11:59 PM, Reio Remma wrote: Did you try

SPF headers.

2017-12-30 Thread Reio Remma
Hello! Another day, another question. I'm running OpenSMTPD in CentOS 7 with amavisd-new and I'm wondering if anyone has managed to have their OpenSMTPD setup add the Received-SPF header? Even though it's not absolutely needed (because as I understand SpamAssassin does its own SPF check),

Re: Forward copy.

2017-12-24 Thread Reio Remma
On 24.12.2017 12:24, Reio Remma wrote: Hello all! I'm looking into moving from Qmail/vpopmail to OpenSMTPD/Dovecot and I cannot for the life of me figure out if/how it's possible to forward a copy for a user. Is it possible at all to forward to Dovecot LMTP via the .forward file? .forward

Forward copy.

2017-12-24 Thread Reio Remma
Hello all! I'm looking into moving from Qmail/vpopmail to OpenSMTPD/Dovecot and I cannot for the life of me figure out if/how it's possible to forward a copy for a user. Is it possible at all to forward to Dovecot LMTP via the .forward file? .forward r...@example.com "|something" Would I

Re: [OpenSMTPD] portable snapshot opensmtpd-201801101641p1 available

2018-01-19 Thread Reio Remma
Hello! There are some warnings when doing make check in CentOS 7 (not sure how serious the warnings are ( I'm averse to warnings)). Thanks! Reio - gcc -DHAVE_CONFIG_H -I. -I.. 

Re: [OpenSMTPD] portable snapshot opensmtpd-201801101641p1 available

2018-01-19 Thread Reio Remma
On 20.01.2018 1:22, Edgar Pettijohn wrote: On 01/19/18 14:56, Reio Remma wrote: Hello! There are some warnings when doing make check in CentOS 7 (not sure how serious the warnings are ( I'm averse to warnings)). Thanks! Reio

Re: [OpenSMTPD] portable snapshot opensmtpd-201801101641p1 available

2018-01-19 Thread Reio Remma
On 20.01.2018 2:30, Edgar Pettijohn wrote: On 01/19/18 17:57, Reio Remma wrote: On 20.01.2018 1:22, Edgar Pettijohn wrote: On 01/19/18 14:56, Reio Remma wrote: Hello! There are some warnings when doing make check in CentOS 7 (not sure how serious the warnings are ( I'm averse to warnings

Re: [OpenSMTPD] portable snapshot opensmtpd-201801101641p1 available

2018-01-14 Thread Reio Remma
Hello again! It seems I was missing libevent-devel - configure completed after installing that. Now, to do the same on my actual test machine. :) Thanks! Reio On 14.01.2018 19:18, Reio Remma wrote: Hello! I tried building on CentOS 7, but it failed the libcrypto check. checking for a BSD

Re: [OpenSMTPD] portable snapshot opensmtpd-201801101641p1 available

2018-01-14 Thread Reio Remma
Hello! I tried building on CentOS 7, but it failed the libcrypto check. checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets

OpenSMTPD tool-stats extra.

2018-01-29 Thread Reio Remma
Hello! Just giving a heads up that tool-stats doesn't work on CentOS 7. [root@bwo reio]# cat /var/log/maillog | tool-stats Segmentation fault Good luck! Reio -- You received this mail because you are subscribed to misc@opensmtpd.org To unsubscribe, send a mail to:

Re: Userbase question.

2018-02-04 Thread Reio Remma
On 04.02.2018 21:56, Reio Remma wrote: Hello! query_userinfo select 1001,1001,'/var/vmail/' from vusers where email=$1; I now realize you version doesn't return the actual user's virtual mail directory. But maybe it doesn't need to. I suspect Dovecot can handle .forward files as well

Re: Userbase question.

2018-02-04 Thread Reio Remma
line and see what you get. On 02/04/18 10:32, Reio Remma wrote: Current smtpd.conf below. As I understand userbase is the only way to let OpenSMTPD know where to look for table aliases  mysql:/etc/opensmtpd/mysql.conf table domains mysql:/etc/opensmtpd/mysql.conf table userinfo mysql:/etc

Re: Userbase question.

2018-02-04 Thread Reio Remma
The only reference I've found that tackles a similar problem: https://hugo.barrera.io/journal/2015/02/15/opensmtpd-dovecot-shared-sql-db/ Rather convoluted for a simple thing though. :) Reio On 04.02.2018 22:01, Reio Remma wrote: On 04.02.2018 21:56, Reio Remma wrote: Hello

Re: Userbase question.

2018-02-04 Thread Reio Remma
On 04.02.2018 22:21, Reio Remma wrote: The only reference I've found that tackles a similar problem: https://hugo.barrera.io/journal/2015/02/15/opensmtpd-dovecot-shared-sql-db/ Rather convoluted for a simple thing though. :) Reio On 04.02.2018 22:01, Reio Remma wrote: On 04.02.2018 21:56

Re: 6.0.3p1-2 - messages sent from imap (dovecot) are not passed through dkimproxy

2018-07-31 Thread Reio Remma
On 31.07.18 6:43, ѽ҉ᶬḳ℠ wrote: From cli it is a different ip. Just add a relay via dkim to the line in question then and see if that works. So it is but why makes that difference considering the directives - particularly the [ any ] part should cover any (as in 172.25.120.2 for instance), or

Re: 6.0.3p1-2 - messages sent from imap (dovecot) are not passed through dkimproxy

2018-08-01 Thread Reio Remma
On 01.08.18 14:48, ѽ҉ᶬḳ℠ wrote: Having sorted PAM SMTPAUTH the user/client 172.25.120.2 is now treated as server's local user and filter rules using from local are matched. Thence, amended [ accept from source 172.25.120.2 for any relay via smtp://127.0.0.1:10027 ] to [ accept from source

Re: 6.0.3p1-2 - messages sent from imap (dovecot) are not passed through dkimproxy

2018-08-01 Thread Reio Remma
On 01.08.18 15:17, ѽ҉ᶬḳ℠ wrote: The matching rule for you should now be: accept (from local) for any relay viasmtp://127.0.0.1:10027 This rule matching would again bypass DKIM and is redundant: accept from source 172.25.120.2 for any relay The way is set and working now: accept for any

Re: 6.0.3p1-2 - messages sent from imap (dovecot) are not passed through dkimproxy

2018-07-31 Thread Reio Remma
On 31.07.18 10:11, ѽ҉ᶬḳ℠ wrote: From cli it is a different ip. Just add a relay via dkim to the line in question then and see if that works. So it is but why makes that difference considering the directives - particularly the [ any ] part should cover any (as in 172.25.120.2 for instance),

Re: Forward of singele email address

2018-08-24 Thread Reio Remma
d i...@otherdomain.com -- Tervitades Reio Remma MR Stuudio 25 aastat *MR Stuudio OÜ* Tondi 17b, 11316, Tallinn Tel +372 650 4808 Mob +372 56 22 00 33 r...@mrstuudio.ee www.mrstuudio.ee

Re: Forward of singele email address

2018-08-24 Thread Reio Remma
On 24.08.18 16:04, opensm...@stachelkaktus.net wrote: Hello Matt, On 24.08.2018 13:49, Matt Schwartz wrote: Try adding it to the aliases file and see what happens but I think the aliases file may only work to map a system user to another email address. I've added another e-mail to an alias:

Re: userbase question

2018-08-27 Thread Reio Remma
Iirc I got the .forward file working with sqlite tables, where the user query also returned the virtual user’s maildir as an extra parameter. Good luck, Reio > On 27 Aug 2018, at 16:11, Matt Schwartz wrote: > > Hello misc@, > > Below is my configuration file. I am trying to use the userbase

Re: very confused on userbase parameter

2018-09-01 Thread Reio Remma
Hello! Are you using multiple domains? I just tested it in its simplest form (in 6.0.3) with one domain and it worked without virtuals. table userinfo { reio = 5000:5000:/home/vmail/turin.mrstuudio.ee/reio } accept tagged Filtered for domain userbase deliver to lmtp

Sending mail from PowerShell via OpenSMTPD fails.

2018-09-04 Thread Reio Remma
Hello! I've a backup script in Windows that sends an e-mail upon completion. The mail goes out successfully if I use port 25 on the mail server but fails unspectacularly with no specific error message on OpenSMTPD side when I try to submit it authenticated on port 587. I suspect it's a

Re: Sending mail from PowerShell via OpenSMTPD fails.

2018-09-05 Thread Reio Remma
Thanks for pointing it out! Quick search and I now know they're plaintext transmitted in base64. :P Time for a password change. :D I can also tell you why it's decodes as Usernamu. :P Reio PS: Damnation On 05/09/2018 10:24, Marcus MERIGHI wrote: Hello, r...@mrstuudio.ee (Reio Remma

Re: Testing SMTP Authentication CLI

2018-09-09 Thread Reio Remma
On 09.09.2018 7:16, Antonino Sidoti wrote: I would like to test the configuration from CLI on my MacBook and using; openssl s_client -connect mail.example.com:25 -starttls smtp. The connection is successful and I can see TLS handshake, etc. I now enter ‘helo’ and 'auth login’, each are

Re: Fwd: smtpd.conf configuration error (accept)

2018-07-04 Thread Reio Remma
On 04.07.2018 11:35, Teno Deuter wrote: here is what I have changed: accept from any \ for domain recipient ! \ virtual \ deliver to maildir "/var/mail/%{user.username}/Inbox" and I still get the error: invalid use of table "blacklistRecipients" as RECIPIENT

Re: SMTP server does not support authentication

2018-07-12 Thread Reio Remma
Hello! Did you try using the submission port (587) in Roundcube? You probably won't want to enforce auth on port 25 because that's used mostly for incoming mail. Good luck, Reio On 12.07.2018 10:52, Teno Deuter wrote: Dear all, I have following configuration: openbsd 6.3 opensmtpd

Re: Fwd: smtpd.conf configuration error (accept)

2018-07-04 Thread Reio Remma
, 2018 at 11:00 AM, Reio Remma wrote: On 04.07.2018 11:35, Teno Deuter wrote: here is what I have changed: accept from any \ for domain recipient ! \ virtual \ deliver to maildir "/var/mail/%{user.username}/Inbox" and I still get the error: invalid us

Re: Greylist-like support

2018-04-07 Thread Reio Remma
On 07.04.2018 3:49, Christopher van de Sande wrote: Been managing my personal email on my own for a good 10 years now using Postfix, and recently I've come to learn about OpenSMTPD.  I've installed it on a test domain and am quite pleased with it. I'm thinking about switching over it for my

Re: AW: Greylist-like support

2018-04-07 Thread Reio Remma
filters can be found here https://github.com/OpenSMTPD/OpenSMTPD-extras/tree/751c7b6b56a13a2381485daf0f97dd7fc0da289e/extras/filters Best regards, Michael *Von: *Reio Remma <mailto:r...@mrstuudio.ee> *Gesendet: *Samstag, 7. April 2018 09:35 *An: *misc@opensmtpd.org <mailto:misc@open

Re: Problem sending mail with Apple Mail

2018-04-10 Thread Reio Remma
Curious indeed, if Apple autoconfiguration would work properly on the submission port. Reio On 10.04.18 12:49, Nick Gyurov wrote: Hey Craig, Solved by additionally specifying port, TLS/SSL and password auth (check my previous mail). Worked on port 465 as well. Sent from my iPhone On 10

Re: OpenSMTPd PostgreSQL user authentication

2018-03-27 Thread Reio Remma
, I can share it if it was necessary. --- What can be wrong? Denis -- Tervitades Reio Remma MR Stuudio 25 aastat *MR Stuudio OÜ* Tondi 17b, 11316, Tallinn Tel +372 650 4808 Mob +372 56 22 00 33 r...@mrstuudio.ee www.mrstuudio.ee

Re: OpenSMTPd PostgreSQL user authentication

2018-03-27 Thread Reio Remma
On 27.03.18 16:58, Denis wrote: query_alias SELECT CONCAT (alias, ' ', dest) AS alias FROM maildatabase WHERE alias=$1 query_domain SELECT domain FROM maildatabase WHERE domain=$1 query_credentials SELECT user, pass FROM maildatabase WHERE userid=$1 AND active=$1 query_userinfo SELECT CONCAT

Re: Problem with OpenSMTPD/Amavisd and mails with multiple recipients.

2018-04-02 Thread Reio Remma
-message-size Seems odd that it would make it through to amavis without hitting the limit first. On Apr 2, 2018 8:08 AM, Reio Remma <r...@mrstuudio.ee> wrote: Hello all! Finally managed to upgrade our server from QMail to OpenSMTPD/Dovecot. After ironing out a few small kinks I'm stil

Problem with OpenSMTPD/Amavisd and mails with multiple recipients.

2018-04-02 Thread Reio Remma
Hello all! Finally managed to upgrade our server from QMail to OpenSMTPD/Dovecot. After ironing out a few small kinks I'm still left with a problem. Our mail comes in and is relayed to Amavisd port 10024, then back to OpenSMTPD port 10025. Everything works except when a mail comes in with

Re: Problem with OpenSMTPD/Amavisd and mails with multiple recipients.

2018-04-02 Thread Reio Remma
ays use SMTP in my case. Re. versions, it is just OpenBSD 6.1 -stable. Vijay Quoting Reio Remma <r...@mrstuudio.ee>: Hey, best not spam Edgar anymore. :) I gathered that from my logs then moment I sent the mail. :) Would you mind showing me your amavisd config? What versions of

Re: Problem with OpenSMTPD/Amavisd and mails with multiple recipients.

2018-04-03 Thread Reio Remma
> On 2 Apr 2018, at 21:37, ed...@pettijohn-web.com wrote: > > >> On Apr 2, 2018 12:43 PM, Reio Remma <r...@mrstuudio.ee> wrote: >> >> Good news! >> >> I was using LMTP to relay to Amavisd, which worked for single >> recipients, but I ju

Re: "limit mta inet4" is ignored, smtpd fails to start

2018-03-18 Thread Reio Remma
Hello! I had a similar problem starting OpenSMTPD at boot in CentOS 7. Solved it by using *listen on 0.0.0.0* instead of *listen on eth0* Good luck, Reio On 18.03.2018 14:54, Richard wrote: On Sun, 18 Mar 2018, Harald Dunkel wrote: problem using opensmtpd 6.0.3 on Debian: I have set

Re: stmtpd[] command="AUTH PLAIN (...)" result="535 Authentication failed"

2018-03-24 Thread Reio Remma
> On 24 Mar 2018, at 12:42, Denis wrote: > > I've just tried all the variants. > > user:password > user: password > user password > u...@domain.com password > u...@domain.com: password > u...@domain.com:password > > smtpd reject any auth attempt with the same error. > >

Re: smtpctl: need root privileges

2018-09-25 Thread Reio Remma
I've allowed a passwordless sudo in sudoers on CentOS 7 for a certain user to be able to execute specific smtpd commands. Albeit, I have no idea if the same is possible on OpenBSD. Good luck! Reio On 25/09/2018 12:23, Joel Carnat wrote: Hi, (Running OpenBSD 6.3/amd64 with OpenSMTPD 6.0.4)

Re: Mail to root not working anymore with 6.4

2019-01-12 Thread Reio Remma
User doesn't exist: fa...@nuc.example.com \^M <-- What about looking at this? Reio On 12.01.2019 13:32, Farid Joubbi wrote: It doesnt seem to give more information. This is with "action lmtp-local lmtp "/var/dovecot/lmtp" rcpt-to": Jan 12 12:12:29 nuc

OpenSMTPD password encryption scheme.

2018-09-18 Thread Reio Remma
Hello! I'm curious as to what determines the password scheme used by OpenSMTPD on a Linux system (CentOS 7 in my case). When setting up the system I ended up with using SHA512, because it seems to be what works both in OpenSMTPD and Dovecot, but would really like to use Blowfish instead.

Re: OpenSMTPD password encryption scheme.

2018-09-18 Thread Reio Remma
On 18.09.2018 19:33, Gilles Chehade wrote: On Tue, Sep 18, 2018 at 10:06:49AM +0300, Reio Remma wrote: Hello! I'm curious as to what determines the password scheme used by OpenSMTPD on a Linux system (CentOS 7 in my case). that's an easy one: OpenSMTPD uses the crypt() function provided

Re: OpenSMTPD password encryption scheme.

2018-09-18 Thread Reio Remma
On 18.09.2018 19:33, Gilles Chehade wrote: that's an easy one: OpenSMTPD uses the crypt() function provided by your system and does not care about the password scheme used as this is a system-specific detail. On modern systems the crypt() function encodes the algorithm, rounds and salt as a

Re: OpenSMTPD password encryption scheme.

2018-09-18 Thread Reio Remma
} This way you can use the same passwd table both for opensmtpd and dovecot. HTH Andreas On 18. Sep 2018, at 09:06, Reio Remma wrote: Hello! I'm curious as to what determines the password scheme used by OpenSMTPD on a Linux system (CentOS 7 in my case). When setting up the system I ended up

Re: 550 invalid recipient issue

2019-03-19 Thread Reio Remma
On 19/03/2019 04:53, Gabriele Tofano wrote: I discovered the below after running a smtpd -dv -Tlookup: lookup: check "17.58.63.178" as NETADDR in table static: -> 0 lookup: check "17.58.63.178" as NETADDR in table static: -> found lookup: check “domain.com" as DOMAIN in table static: -> found

Re: Multiple query_mailaddr when using table_postgresql not possible

2019-08-12 Thread Reio Remma
On 12/08/2019 12:32, mabi wrote: Hello, I would like to add an extra table in a PostgreSQL database to define domain names which I will reject mails from (mostly spam domains) on my OpenBSD 6.5 MX server. For that I would need to add the following query_mailaddr to my

Re: OpenSMTPD build on OpenSSL 1.1.x

2019-08-27 Thread Reio Remma
On 27.08.2019 21:25, Richard Narron wrote: The OpenSMTPD portable version from https://github.com/OpenSMTPD/OpenSMTPD works fine on Slackware64 current with OpenSSL 1.1.1c and gcc 9.2 It took me a while to get it to work though. I first downloaded the "current" portable version from

Re: OpenSMTPD build on OpenSSL 1.1.x

2019-08-28 Thread Reio Remma
On 28/08/2019 01:00, Reio Remma wrote: The fresh RPM installed nicely on a clean CentOS 7 with their OpenSSH 1.0.2k and OpenSMTPD started too: Aug 28 00:50:07 localhost smtpd[9338]: cfa3e1042696f77a mta delivery evpid=953ab16d13e43b2f from= to= rcpt=<-> source="192.168.1.

Re: OpenSMTPD build on OpenSSL 1.1.x

2019-08-28 Thread Reio Remma
On 28/08/2019 10:44, gil...@poolp.org wrote: 28 août 2019 00:00 "Reio Remma" a écrit: On 27.08.2019 21:25, Richard Narron wrote: The OpenSMTPD portable version from https://github.com/OpenSMTPD/OpenSMTPD works fine on Slackware64 current with OpenSSL 1.1.1c and gcc 9.2 It took

Re: OpenSMTPD build on OpenSSL 1.1.x

2019-08-28 Thread Reio Remma
On 28/08/2019 11:30, Gilles Chehade wrote: OpenSSL 1.0.x is going to be supported until 2019-12-31 so this will get solved by itself soon ;-) Unfortunately not for CentOS 7. :D They have a policy of not making major version upgrades during the lifecycle of an OS version. :( Suspect I'll

Re: OpenSMTPD-Logwatch script.

2019-09-03 Thread Reio Remma
On 27.04.2018 12:26, Reio Remma wrote: Hello all, I've whipped together a Logwatch script for OpenSMTPD. I've anyone is interested on giving it a try, it's now at: https://github.com/whataboutpereira/OpenSMTPD-Logwatch Hello! I've now updated the Logwatch script to work with OpenSMTPD

Re: OpenSMTPD-Logwatch script.

2019-09-03 Thread Reio Remma
On 04.09.2019 1:43, Edgar Pettijohn wrote: On Tue, Sep 03, 2019 at 09:29:14PM +0300, Reio Remma wrote: On 27.04.2018 12:26, Reio Remma wrote: Hello all, I've whipped together a Logwatch script for OpenSMTPD. I've anyone is interested on giving it a try, it's now at: https://github.com

Question about match auth with the new syntax.

2019-08-28 Thread Reio Remma
Hello! I've pretty much converted my setup to the new syntax now and I'm wondering if I get this right. I understand that from local was changed to not include authenticated users, but my question is does "match auth" match both authenticated and local users? I currently have - "match

Re: Virtual User handling

2019-09-02 Thread Reio Remma
On 30/08/2019 18:00, Ede Wolf wrote: Hello, While trying to learn opensmtpd, amongst other things I am struggeling with the virtual user handling - for a non virtual domain setup. From what I have been able to understand so far it seems, as if there is no way to deliver mails to a lmtp

Re: Building 6.4.2p1 without ssl?

2019-09-02 Thread Reio Remma
-recursive] Error 1 make[2]: Leaving directory '/root/build/opensmtpd-6.4.2p1/mk' make[1]: *** [Makefile:418: all-recursive] Error 1 make[1]: Leaving directory '/root/build/opensmtpd-6.4.2p1' make: *** [Makefile:350: all] Error 2 -- Tervitades Reio Remma MR Stuudio 25 aastat *MR Stuudio OÜ* Tondi 17b, 11316, Tallinn Tel +372 650 4808 Mob +372 56 22 00 33 r...@mrstuudio.ee www.mrstuudio.ee

Re: Virtual User handling

2019-09-02 Thread Reio Remma
On 02/09/2019 10:35, Ede Wolf wrote: Hello Edgar, thanks very much for your in depth reply and the effort you've put into it. As for the "user" keyword, the way I understand this, it that it equals the "as" statement in the old version. ... lmtp "/run/cyrus/lmtp" rcpt-to ->as nobody<-

Re: New syntax and virtual aliases to remote addresses.

2019-09-02 Thread Reio Remma
On 02/09/2019 18:36, Reio Remma wrote: On 02/09/2019 17:05, gil...@poolp.org wrote: September 2, 2019 3:35 PM, "Reio Remma" wrote: Hello! I was able to have virtual aliases pointing to external addresses with the old syntax, but it doesn't seem to work like that with new rules:

New syntax and virtual aliases to remote addresses.

2019-09-02 Thread Reio Remma
Hello! I was able to have virtual aliases pointing to external addresses with the old syntax, but it doesn't seem to work like that with new rules: action filter_incoming relay host smtp://127.0.0.1:10024 action sign_outgoing   relay host smtp://127.0.0.1:10026 action relay_outgoing  relay

Re: OpenSMTPD-Logwatch script.

2019-09-04 Thread Reio Remma
On 04/09/2019 01:43, Edgar Pettijohn wrote: On Tue, Sep 03, 2019 at 09:29:14PM +0300, Reio Remma wrote: On 27.04.2018 12:26, Reio Remma wrote: Hello all, I've whipped together a Logwatch script for OpenSMTPD. I've anyone is interested on giving it a try, it's now at: https://github.com

Re: smarthost + aliases

2019-09-14 Thread Reio Remma
On 14.09.2019 3:05, Edgar Pettijohn wrote: On Sat, Sep 14, 2019 at 12:32:22AM +0200, Thomas Schweikle wrote: Hi! Trying to set up opensmtpd as a simple single mta relaying all mail to a smarthost. But ... Config: listen on localhost table aliases db:/etc/aliases.db table secrets

Re: smtpd / mail.lmtp rewrites from address, breaking lmtp

2019-09-16 Thread Reio Remma
On 17.09.2019 1:08, Michal Krzysztofowicz wrote: Thanks for looking after this. Unfortunately, no dice: Sep 16 21:57:13 atlantic smtpd[83146]: 70aec8652b2efbe8 mda delivery evpid=0f662ffc0f395dbe from= to= rcpt= user=me delay=0s result=PermFail stat=Error ("/bin/sh: no closing quote”) ’ is

Re: Filters and rctp-to rewrite.

2019-09-09 Thread Reio Remma
On 09.09.2019 18:13, Martijn van Duren wrote: On 9/9/19 3:37 PM, Reio Remma wrote: Hello! Slowly digging into filters. Now I'm curious if it's possible to modify the recipient after say spam check in data-line? I get the impression that rewriting rcpt-to at that stage is impossible, but my

Re: Filters and rctp-to rewrite.

2019-09-09 Thread Reio Remma
On 09.09.2019 20:03, Giovanni Bechis wrote: I'm currently using amavisd-new with the quarantine feature, but I'm itching to switch to Rspamd (greylisting here I come!). amavisd-new 2.12 has rspamd support, have you tried it ? Curious! I see the project has again switched hands, if you mean

Filters and rctp-to rewrite.

2019-09-09 Thread Reio Remma
Hello! Slowly digging into filters. Now I'm curious if it's possible to modify the recipient after say spam check in data-line? I get the impression that rewriting rcpt-to at that stage is impossible, but my goal would be to redirect/quarantine high scoring spam to a special e-mail address.

Re: OpenSMTPD-Logwatch script.

2019-09-05 Thread Reio Remma
On 03/09/2019 21:32, gil...@poolp.org wrote: September 3, 2019 8:29 PM, "Reio Remma" wrote: On 27.04.2018 12:26, Reio Remma wrote: Hello all, I've whipped together a Logwatch script for OpenSMTPD. I've anyone is > interested on giving it a try, it's now at: https

Re: New syntax and virtual aliases to remote addresses.

2019-09-05 Thread Reio Remma
On 05/09/2019 09:38, Reio Remma wrote: On 02/09/2019 18:37, Reio Remma wrote: On 02/09/2019 18:36, Reio Remma wrote: Now I ended up switcing to tls-require on port 25. I wonder how much spam that will take down! :) On the spam front - requiring TLS apparently cuts off about 99% of spam

Re: New syntax and virtual aliases to remote addresses.

2019-09-05 Thread Reio Remma
no excuse. And the most absurd fact. Postfix needs a setting to turn on opportunistic TLS on outgoing mail. They default to none. Oh I'm angry today. In a positive way! :) Reio September 5, 2019 8:38 AM, "Reio Remma" wrote: On 02/09/2019 18:37, Reio Remma wrote: On 02/09/2019 1

Re: OpenSMTPD-Logwatch script.

2019-09-05 Thread Reio Remma
ber 5, 2019 10:30 AM, "Reio Remma" wrote: On 03/09/2019 21:32, gil...@poolp.org wrote: September 3, 2019 8:29 PM, "Reio Remma" wrote: On 27.04.2018 12:26, Reio Remma wrote: Hello all, I've whipped together a Logwatch script for OpenSMTPD. I've anyone is > interes

Failed logins hammer/filter.

2019-09-16 Thread Reio Remma
Hello! Until upgrading to OpenSMTPD 6.6 I used fail2ban to ban excessive login failures from IPs, but that doesn't work any more with the log format changed from: smtp event=failed-command address=185.13.39.7 host=vps-33288.fhnet.fr command="AUTH LOGIN (password)" result="535 Authentication

Re: Virtual User handling

2019-09-08 Thread Reio Remma
> On 07.09.2019 12:53, Ede Wolf wrote: > Excellent idea, however, the error stays the same. No change, despite copying > the whole opensmtpd folder to /usr/local/libexec > > result=TempFail stat=Error (temporary failure: "mail.lmtp: No such file or > directoryconnect") I purposefully mistyped

Re: OpenSMTPD-Logwatch script.

2019-09-05 Thread Reio Remma
On 05/09/2019 11:33, gil...@poolp.org wrote: Yes, see the smtpd.conf(5) man page: filter myreporter proc-exec "/tmp/reporting.sh" listen on [...] filter myreporter smtp: 0x271c2c0: <<< EHLO localhost mproc: pony -> lka : 49 IMSG_REPORT_SMTP_PROTOCOL_CLIENT mproc: pony -> lka : 50 IMSG_???

Re: New syntax and virtual aliases to remote addresses.

2019-09-05 Thread Reio Remma
On 02/09/2019 18:37, Reio Remma wrote: On 02/09/2019 18:36, Reio Remma wrote: Now I ended up switcing to tls-require on port 25. I wonder how much spam that will take down! :) Well, that's depressing. On the spam front - requiring TLS apparently cuts off about 99% of spam (SpamAssassin

Re: OpenSMTPD-Logwatch script.

2019-09-05 Thread Reio Remma
On 05/09/2019 13:32, Martijn van Duren wrote: On 9/5/19 11:55 AM, Reio Remma wrote: On 05/09/2019 11:33, gil...@poolp.org wrote: Yes, see the smtpd.conf(5) man page: filter myreporter proc-exec "/tmp/reporting.sh" listen on [...] filter myreporter mproc: pony -&

FCrDNS.

2019-09-28 Thread Reio Remma
Hello! I just had to share this. :) I made a makeshift reporter to see how many incoming SMTP connections would fail on our server: fcrdns-reporter: fcrdns-failure address=89.248.160.66 host=no-reverse-dns-configured.com result="Hostname resolved to a different IP" Someone out there has

Re: need help

2019-09-30 Thread Reio Remma
On 30/09/2019 16:55, gil...@poolp.org wrote: Hello, I'd like to bring native support for SPF in OpenSMTPD in a future release, but for this I need a bit of help to make sure my SPF resolver works fine. I have created a repository with a standalone executable that performs the SPF lookup and

Re: unable to send mail from desktop mail client to remote email addresses

2019-10-03 Thread Reio Remma
On 03.10.2019 18:34, Kevin wrote: If I can send the domain email, if I can retrieve email via Dovecot, if I can send mail to myself from the server's CLI (and even retrieve it remotely via my mail client), it seems like there's some knob missing that says, "All auth'd users to relay," yet,

OpenSMTPD sendmail and Message-Id.

2019-10-09 Thread Reio Remma
Hello! I'm curious as to what the norm is with Message-Id when sending mail from command line or scripts. I notice mails sent by cron (CentOS 7) are all without Message-Id when they're passed to OpenSMTPD. As I see cron should use sendmail.opensmtpd to send mail. Is it a problem with cron

Re: Repeated 421 try again later erros

2019-10-09 Thread Reio Remma
On 09.10.2019 23:13, Matt Schwartz wrote: Hello List, I am getting a lot of repeated 421 try again later errors from various lists that I am a member of. There is one in particular that is coming from outbound.foodtecsolutions.com . Here is an excerpt

filter-rspamd DKIM checks failing intermittently.

2019-10-13 Thread Reio Remma
Hello! I finally moved to Rspamd (2.0) on my production server and I'm seeing lots of failed DKIM checks, specifically dkim=fail (body hash did not verify). Authentication-Results: host.domain.com;     dkim=fail (body hash did not verify) header.d=facebookmail.com header.s=s1024-2013-q3

Re: filter-rspamd DKIM checks failing intermittently.

2019-10-13 Thread Reio Remma
domain.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=ot9QqpYS; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (host.domain.com: domain of gil...@gmail.com designates 209.85.128.42 as permitted sender) smtp.mailfrom=gil...@gmail.com On 13.10.2019 16:27, Reio R

Re: filter-rspamd DKIM checks failing intermittently.

2019-10-13 Thread Reio Remma
On 13.10.2019 16:09, Reio Remma wrote: On 13.10.2019 16:05, Gilles Chehade wrote: I don't think that is the issue, it is probably the filter-rspamd reconstruction of the message that is incorrect. I was thinking along the same lines, but I'm not sure how OpenSMTPD splits strings before

Re: filter-rspamd DKIM checks failing intermittently.

2019-10-13 Thread Reio Remma
igned (relaxed)" header.from=gmail.com (policy=none); spf=pass (orc.mrstuudio.ee: domain of hel...@googlegroups.com designates 209.85.222.184 as permitted sender) smtp.mailfrom=hel...@googlegroups.com On 13.10.2019 16:37, Reio Remma wrote: So far there's a marked improvement! Waitin

Re: filter-rspamd DKIM checks failing intermittently.

2019-10-13 Thread Reio Remma
Just restarted my daemon with the modified filter. :) Will have to get someone message me at FB now. On 13.10.2019 16:22, Gilles Chehade wrote: Very likely yes, can you give it a try ? On Sun, Oct 13, 2019, 15:15 Reio Remma <mailto:r...@mrstuudio.ee>> wrote: On 13.10.2019 16

Re: filter-rspamd DKIM checks failing intermittently.

2019-10-13 Thread Reio Remma
10/13/19 1:59 PM, Reio Remma wrote: > Hello! > > I finally moved to Rspamd (2.0) on my production server and I'm seeing > lots of failed DKIM checks, specifically dkim=fail (body hash did not > verify). > > > Authentication-Results:

Re: filter-rspamd DKIM checks failing intermittently.

2019-10-13 Thread Reio Remma
On 13.10.2019 15:59, Martijn van Duren wrote: On 10/13/19 1:59 PM, Reio Remma wrote: Hello! I finally moved to Rspamd (2.0) on my production server and I'm seeing lots of failed DKIM checks, specifically dkim=fail (body hash did not verify). Authentication-Results: host.domain.com

Re: Problem using senders table in listen directive

2019-10-14 Thread Reio Remma
I just tested with MySQL and the result is the same. smtpd -dv -T lookup yielded: de334c3363d95880 smtp authentication user=u...@host.com result=ok debug: smtp: SIZE in MAIL FROM command debug: lka: mailaddrmap senderalias:u...@host.com lookup: lookup "u...@host.com" as MAILADDRMAP in table