Re: warn: table-proc: pipe closed (Probably mySQL-hassle and a newbie-question)

2020-08-15 Thread Edgar Pettijohn
On Sun, Aug 16, 2020 at 02:15:52AM +0200, Fabian M??ller wrote: > > is your user allowed to connect to the host above? > > ** Which host do you mean? mx01 is allowed to connect to db (ha-proxy) and > even db1, db2, db3 directly (which I also tried, but did not change > anything). And the

Re: warn: table-proc: pipe closed (Probably mySQL-hassle and a newbie-question)

2020-08-15 Thread Edgar Pettijohn
On Sun, Aug 16, 2020 at 12:13:41AM +0200, Fabian M??ller wrote: > Hi! > > I am hopefully a new opensmtpd user and before I???ll start off with my first > newbie question I???d be happy to briefly introduce myself: I???m Fabian from > Germany. Actually I am studying german law, but as ??? in

Re: Is LDAP+SSL supported?

2020-07-25 Thread Edgar Pettijohn
On Sat, Jul 25, 2020 at 02:26:27PM +0200, ?loi Rivard wrote: > > In my opinion, table-ldap from extras is doomed as it relies on a lib > > that > > is barely maintained and doing LDAP asynchronously is painful. > > Are you saying the support for table-ldap may stop in a near future? > > > I

Re: Help to adapt ???Setting up a mail server with OpenSMTPD, Dovecot and Rspamd???

2020-07-19 Thread Edgar Pettijohn
table-passwd can be found here: https://github.com/OpenSMTPD/OpenSMTPD-extrashttps://github.com/OpenSMTPD/OpenSMTPD-extras On Mon, Jul 13, 2020 at 05:23:20PM -0300, Leandro Peracchi wrote: > Scenario: hypno.cat expanded inside a Raspberry Pi 4 with Arch Linux, three > breeds (domains), two

Re: Help to adapt ???Setting up a mail server with OpenSMTPD, Dovecot and Rspamd???

2020-07-14 Thread Edgar Pettijohn
On Tue, Jul 14, 2020 at 10:10:23PM -0300, Leandro Peracchi wrote: > I made some progress, all services start without errors. > > When tried to send a test mail from Gmail to my server, got the error: > > smtpd[727]: ny express[727]: c2a5ef6f793addab mda delivery > evpid=567ebdf9f826cf44 >

Re: mail log oddity

2020-06-11 Thread Edgar Pettijohn
t to > find vulnerable servers without fully leveraging the exploit. > > If you had the IP it originates from it could tell you a lot.On Jun 10, 2020 > 8:08 PM, Ryan Kavanagh wrote: 61.148.74.134 Edgar > > > > On Wed, Jun 10, 2020 at 10:00:08PM -0500, Edgar Pettijohn wrote:

mail log oddity

2020-06-10 Thread Edgar Pettijohn
Saw this in the maillog today. Any ideas what they are trying to do? 249c054a86af9328 smtp failed-command command="MAIL FROM: <;for i in 0 1 2 3 4 5 6 7 8 9 a b c d;do read r;done;sh;exit 0;>" result="530 5.5.1 Invalid command: Must issue an AUTH command first" Edgar

Re: Newbie config question

2020-06-05 Thread Edgar Pettijohn
On Fri, Jun 05, 2020 at 11:28:12AM -0500, David Favor wrote: > I've been wrestling with this for days with no progress. > > Can someone drop me a v6.6.4 config to do something similar to the following. > >da...@davidfavor.com - maildir >i...@davidfavor.com- forward to

Re: new table backends

2020-05-26 Thread Edgar Pettijohn
On Tue, May 26, 2020 at 10:58:12PM +, gil...@poolp.org wrote: > Hellow, > > I have been working on a new table backend: table-procexec. > > What it does is translate the imsg table API to a line-based protocol that is > very similar to what we did for filters. A table backend can become a

[patch] add a timeout to filter registration

2020-05-02 Thread Edgar Pettijohn
When playing with filters its easy to forget to register stdout, etc... Here is a patch to add a timeout and give a little helpful info as opposed to just hanging in an unusable state. Index: lka_filter.c === RCS file:

Re: Custom filter

2020-04-16 Thread Edgar Pettijohn
On Thu, Apr 16, 2020 at 06:14:46PM +0200, Martijn van Duren wrote: > On 4/16/20 3:58 PM, Jacky wrote: > > Hi, > > > > I am using Opensmtp 6.6.4p1. I am going to use Opensmtp as outgoing SMTP > > server, and use POP before SMTP method for authentication. > > > > Is it possible for us to write

filter-spamassassin.pl

2020-04-01 Thread Edgar Pettijohn
http://www.pettijohn-web.com/filter-spamassassin.pl http://www.pettijohn-web.com/SHA512 I've written a little spamassassin filter in perl. The only requirements you may not have installed is AnyEvent. Its pretty common so your os most likely has it packaged. If not: # cpan -i AnyEvent

OpenSMTPD::Password perl module now supports openbsd

2020-03-19 Thread Edgar Pettijohn
://www.pettijohn-web.com/OpenSMTPD-Password-0.03.tar.gz http://www.pettijohn-web.com/SHA512 On 3/18/20 10:29 AM, Edgar Pettijohn wrote: Just updated the module with a few minor tweaks, mostly just making it more perl like and a few more error checks. Also requires BSD::arc4random to provide random numbers

OpenSMTPD::Password perl module

2020-03-18 Thread Edgar Pettijohn
Just updated the module with a few minor tweaks, mostly just making it more perl like and a few more error checks. Also requires BSD::arc4random to provide random numbers as opposed to the perl builtin rand(). Should make the truly paranoid types happy :) Again it still only works for

perl module for hashing/checking passwords

2020-03-11 Thread Edgar Pettijohn
Here is a simple perl module for hashing passwords/checking passwords for use in scripts and such. Tested on Slackware current and Netbsd 8.1 others expected to work. Only works with portable smtpd. Basically just a perl version of contrib/libexec/encrypt/encrypt.c

Re: filter question

2020-03-09 Thread Edgar Pettijohn
On Mar 9, 2020 1:34 AM, Martijn van Duren wrote: > > On 3/6/20 5:00 PM, epektasis wrote: > > Greetings.  I have my own blacklist file of email addresses > > (some in the format microcen...@microcenter.com and some in > > the format *@squaredeals.com), one per line.  I would like to > > filter

perl filter/report module

2020-02-25 Thread Edgar Pettijohn
I wrote a simple perl module for easing the writing of filter/reports for OpenSMTPD. It isn't 100% complete, but its usable. http://www.pettijohn-web.com/OpenSMTPD-Report-0.01.tar.gz Edgar

Re: Enforce outgoing mail to always use TLS

2020-02-22 Thread Edgar Pettijohn
On 02/22/20 12:55, Søren Aurehøj wrote: Hi Misc I am using OpenSMTPD 6.6.0 on OpenBSD 6.6 stable Currently I’m using the tls-require option in order to get mandatory TLS on outgoing mail, but with that follows the normal time-out values regarding bounce intervals. Because of greylisting,

Re: Subject prefixing

2020-02-13 Thread Edgar Pettijohn
On Feb 13, 2020 2:01 PM, Ionel GARDAIS wrote: > > Hi list, > > I'm looking for an easy way to add a static prefix "[*EXT*]" to all incoming emails, as long as the subject does not already contains this string. > OpenSMTPD is running as a filtering MX running senderscore filter. > default action

logging

2020-02-07 Thread Edgar Pettijohn
I'm curious with the advent of the `report/filter' interface. Will there be the possibility of disabling syslog logging in the future? I was thinking of writing a script to "log" in xml for easy parsing/pretty printing the logs. The only drawback I see is doubling the disk usage. I suppose I

Re: filter bug?

2020-02-01 Thread Edgar Pettijohn
docs for .5 and testing on a system running .4 so as usual the fault lies with myself. Thanks! Edgar For example filter-rspamd was recently updated to work with both versions, switching the argument order as needed. Good luck, Reio On 01.02.2020 4:18, Edgar Pettijohn wrote: Not sure if its

filter bug?

2020-01-31 Thread Edgar Pettijohn
Not sure if its a documentation bug or not, but smtpd-filters.7 states the following:  For all phases, excepted "data-line", the responses must follow the same construct, a message type "filter-result", followed by the unique session id, the opaque token, a decision and optional

Re: filter oddities

2020-01-29 Thread Edgar Pettijohn
On 01/25/20 16:14, Edgar Pettijohn wrote: On 01/25/20 14:48, Edgar Pettijohn wrote: On 01/25/20 14:24, gil...@poolp.org wrote: January 25, 2020 9:21 PM, "Edgar Pettijohn" wrote: On 01/25/20 14:20, gil...@poolp.org wrote: January 25, 2020 8:50 PM, "Edgar Pettijoh

Re: smtpd-filters.7 patch

2020-01-26 Thread Edgar Pettijohn
Missed a typo "s/strenght/strength/" On 01/25/20 14:12, Edgar Pettijohn wrote: On 01/25/20 14:08, gil...@poolp.org wrote: The diff reads ok but I wonder why you removed this sentence: -No decision is ever taken by the report stream. I think it made it a bit more clear that

Re: filter oddities

2020-01-26 Thread Edgar Pettijohn
On 01/26/20 01:01, Edgar Pettijohn wrote: On Jan 26, 2020 12:11 AM, Martijn van Duren wrote: On 1/25/20 8:50 PM, Edgar Pettijohn wrote: I haven't seen any mention of this, but for some reason in my limited "testing" of filters I have to use \r\n in my responses to smtpd. Is t

Re: filter oddities

2020-01-25 Thread Edgar Pettijohn
On 01/25/20 14:48, Edgar Pettijohn wrote: On 01/25/20 14:24, gil...@poolp.org wrote: January 25, 2020 9:21 PM, "Edgar Pettijohn" wrote: On 01/25/20 14:20, gil...@poolp.org wrote: January 25, 2020 8:50 PM, "Edgar Pettijohn" wrote: I haven't seen any mention o

Re: filter oddities

2020-01-25 Thread Edgar Pettijohn
On 01/25/20 14:24, gil...@poolp.org wrote: January 25, 2020 9:21 PM, "Edgar Pettijohn" wrote: On 01/25/20 14:20, gil...@poolp.org wrote: January 25, 2020 8:50 PM, "Edgar Pettijohn" wrote: I haven't seen any mention of this, but for some reason in my limited &qu

Re: filter oddities

2020-01-25 Thread Edgar Pettijohn
On 01/25/20 14:20, gil...@poolp.org wrote: January 25, 2020 8:50 PM, "Edgar Pettijohn" wrote: I haven't seen any mention of this, but for some reason in my limited "testing" of filters I have to use \r\n in my responses to smtpd. Is this normal? Doesn't seem to be

Re: smtpd-filters.7 patch

2020-01-25 Thread Edgar Pettijohn
On 01/25/20 14:08, gil...@poolp.org wrote: The diff reads ok but I wonder why you removed this sentence: -No decision is ever taken by the report stream. I think it made it a bit more clear that reporting is informative only. I felt that the line stating it was a one-way stream covered

filter oddities

2020-01-25 Thread Edgar Pettijohn
I haven't seen any mention of this, but for some reason in my limited "testing" of filters I have to use \r\n in my responses to smtpd. Is this normal? Doesn't seem to be documented and what filters I've looked at don't appear to be using \r\n. For example without ORS = "\r\n" the following

smtpd-filters.7 patch

2020-01-25 Thread Edgar Pettijohn
diff --git a/smtpd/smtpd-filters.7 b/smtpd/smtpd-filters.7 index 1e1a27ef..3cdb10e1 100644 --- a/smtpd/smtpd-filters.7 +++ b/smtpd/smtpd-filters.7 @@ -89,22 +89,21 @@ to inform in real-time about events that are occurring in the daemon. The report events do not expect an answer from .Nm , -it

netbsd fails without /etc/mailname

2020-01-19 Thread Edgar Pettijohn
Just built a fresh git checkout. The configure make and install all went smoothly. However, now I have to have an /etc/mailname file or it gets stuck in config_default(). Specifically the following line from getmailname(): error = getaddrinfo(hostname, NULL, , ); It just hangs there until

netbsd makefile issue

2020-01-19 Thread Edgar Pettijohn
Had to do the following for `make uninstall' $ for file in `find . -name Makefile` > do > sed -i 's/\/bin\/true/\/usr\/bin\/true/g' $file > done $ sudo make uninstall Edgar

Re: Skip recipient verification and forward everything to a LMTP socket

2020-01-18 Thread Edgar Pettijohn
On Jan 18, 2020 2:45 PM, gil...@poolp.org wrote: > > January 15, 2020 6:03 PM, "Éloi Rivard" wrote: > > > Hi, > > > > I would like to put a OpenSMTPD server in front of a sourcehut lists > > installation [1] (that is, a mailing list system for sourcehut). > > OpenSMTPD and sourcehut communicate

Re: Auth not working on linux?

2020-01-18 Thread Edgar Pettijohn
On Jan 18, 2020 8:54 AM, Michael Jacob wrote: > > I am trying to setup a opensmtpd server on Arch Linux, the arch package version is 6.6.1p1-2 from 2019-11-06. When I use the "auth" option with "listen on", no authorization with valid system users succeed. But using "auth" with an external table

[patches] remove warnings from build on NetBSD

2020-01-06 Thread Edgar Pettijohn
Remove warnings about strtonum(). Probably a better place for this, but not sure where. diff --git a/openbsd-compat/defines.h b/openbsd-compat/defines.h index 23fc8ae2..868943cd 100644 --- a/openbsd-compat/defines.h +++ b/openbsd-compat/defines.h @@ -491,4 +491,8 @@ typedef uint16_t   

RE: Unable to use .forward with snmpd

2019-12-18 Thread Edgar Pettijohn
Dec 16 19:26 ../ > > От: GARDAIS Ionel > Отправлено: 18 декабря 2019 г. 20:32 > Кому: Юрий Иванов > Копия: Edgar Pettijohn ; misc > Тема: Re: Unable to use .forward with snmpd >   > I see no 'new' folder under the 'Maildir/.admin' fo

Re: Unable to use .forward with snmpd

2019-12-18 Thread Edgar Pettijohn
On 2019-12-18 17:28, Edgar Pettijohn wrote: On Dec 18, 2019 8:47 AM, Юрий Иванов wrote: > > Hi, I'm using snmpd with roundcube. > > After creating .forward file I apply chmod 400 .forward, so no errors in my mail.err log. > Default permissions leads to generating warn i

Re: Unable to use .forward with snmpd

2019-12-18 Thread Edgar Pettijohn
*De: *"Юрий Иванов" *À: *"Edgar Pettijohn" , "misc" *Envoyé: *Mercredi 18 Décembre 2019 18:50:30 *Objet: *RE: Unable to use .forward with snmpd I've created directory through regular RoundCube web interface. Base directory: suser@webmail:~$ ll Maildir/ total 188 d

Re: Unable to use .forward with snmpd

2019-12-18 Thread Edgar Pettijohn
On Dec 18, 2019 8:47 AM, Юрий Иванов wrote: > > Hi, I'm using snmpd with roundcube. > > After creating .forward file I apply chmod 400 .forward, so no errors in my mail.err log. > Default permissions leads to generating warn in logs: > smtpd[6275]: warn: smtpd: /home/suser/.forward: unsecure

Re: fix build on netbsd

2019-12-05 Thread Edgar Pettijohn
On Dec 5, 2019 1:06 AM, Gilles Chehade wrote: > > On Wed, Dec 04, 2019 at 07:27:07PM -0600, Edgar Pettijohn wrote: > > diff --git a/openbsd-compat/openbsd-compat.h > > b/openbsd-compat/openbsd-compat.h > > index 6c73e5b5..c7af0135 100644 > > --- a/openbsd-com

fix build on netbsd

2019-12-04 Thread Edgar Pettijohn
diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h index 6c73e5b5..c7af0135 100644 --- a/openbsd-compat/openbsd-compat.h +++ b/openbsd-compat/openbsd-compat.h @@ -122,7 +122,7 @@ int getpeereid(int , uid_t *, gid_t *);  unsigned int arc4random(void);  #endif -#if

Re: Primary Domains vs. Virtual Domains - what's the difference?

2019-11-18 Thread Edgar Pettijohn
On Nov 18, 2019 9:14 AM, Charles Collicutt wrote: > > On 18 Nov 2019, at 13:07, gil...@poolp.org wrote: > > > > With a virtual domain, OpenSMTPD assumes that domain.org == the content of > > the virtual table. > > The virtual mechanism is not optional, the recipient MUST exist in the > >

Re: Accept mail for all recipients

2019-10-30 Thread Edgar Pettijohn
On Oct 30, 2019 12:02 PM, Sergey Seacher wrote: > > 26.10.2019 19:06, Sergey Seacher пишет: > > 26.10.2019 13:51, Reio Remma пишет: > > On 26/10/2019 13:35, Sergey Seacher wrote: > > Hello! > > How can I make, opensmtpd accept mail for all recipients: that are present in the file

Re: Docker build is failing

2019-10-10 Thread Edgar Pettijohn
Kinda curious what the config.h looks like after you run configure. On Oct 10, 2019 2:04 PM, Ihor Antonov wrote: > > On Thu, 2019-10-10 at 14:46 -0400, Ihor Antonov wrote: > > Docker build of portable branch is broken, and has been for a while > > now. I discovered this while trying to test out

Re: Handling of mailing list (or other non system) accounts

2019-10-05 Thread Edgar Pettijohn
> > > > Accepting mails for user known to the system works, but what I haven't > > though about, are mailing lists. And probably, also mails to be > > recieved in > > [B]CC could be affected. > > > > As those are not directly adressed to any account known to the system, > > but > > f.e

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

2019-10-03 Thread Edgar Pettijohn
Could you post your config. Thanks On Oct 3, 2019 10:34 AM, Kevin wrote:On Thu, Oct 3, 2019 at 12:36 AM Peter N. M. Hansteen wrote:On Wed, Oct 02, 2019 at 11:33:58PM -0700, Kevin wrote: > Hi all, > > Having just followed the setup instructions on Gilles HOWTO page here: >

Re: need help

2019-09-30 Thread Edgar Pettijohn
On Sep 30, 2019 9:10 AM, Reio Remma wrote: > > 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

Re: Senders based relaying & authentication

2019-09-26 Thread Edgar Pettijohn
It's the first example in smtpd.conf(5). Edgar On Sep 26, 2019 8:43 AM, john philip wrote: > > Hello everybody. > I'm new to the list :-) > > Postfix has senders-dependent routing and authentication. > > How to do senders-based relaying & authentication as Postfix > to different smart hosts? > >

Re: table-passwd

2019-09-23 Thread Edgar Pettijohn
On Sep 23, 2019 11:58 AM, Joerg Jung wrote: > > > > > On 18. Sep 2019, at 09:38, gil...@poolp.org wrote: > > > > September 17, 2019 11:41 PM, "Edgar Pettijohn" > > wrote: > > > >> On Sep 17, 2019 9:05 AM, Gilles Chehade wrote: &

Re: table-passwd

2019-09-17 Thread Edgar Pettijohn
On Sep 17, 2019 9:05 AM, Gilles Chehade wrote: > > Hello, > > Is there anyone using table-passwd for _any_ other purposes than sharing > with Dovecot ? > > I have built a fully virtual setup which shares credentials with Dovecot > and since I managed to do it _without_ table-passwd I'm wondering

Re: smarthost + aliases

2019-09-13 Thread Edgar Pettijohn
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 db:/etc/smtpd.secrets.db > expire 4h

Re: My smtp server can't send emails to another ones (550 Invalid recipient)

2019-09-13 Thread Edgar Pettijohn
On Fri, Sep 13, 2019 at 08:04:12PM -0300, marcio_silva wrote: > Hi all, > > I am using Hyperbola distro with the following packages: > > * opensmtpd 6.4.2p1 > * dkimproxy 1.4.1 > > I have installed a mail server to send and receive emails with my own domain > with the following configurations:

Re: Virtual User handling

2019-09-07 Thread Edgar Pettijohn
On Sat, Sep 07, 2019 at 11:53:58AM +0200, Ede Wolf wrote: > > > So it is a binary, thats useful information. Having specified /opt/smtpd > > > as prefix during ./configure, it is located here: > > > > > > /opt/smptd/libexec/opensmtpd/mail.lmtp > > > > > > > Throw it in /usr/local/libexec/smtpd/

Re: Virtual User handling

2019-09-06 Thread Edgar Pettijohn
On Sep 6, 2019 12:40 PM, Ede Wolf wrote: > > Am 06.09.19 um 18:59 schrieb Edgar Pettijohn: > > Sounds like the mail.lmtp program is missing or not where it belongs. > > Should live somewhere in /usr/local/libexec. Find it and let us know where > > it is and somebody can

Re: Virtual User handling

2019-09-06 Thread Edgar Pettijohn
On Sep 6, 2019 10:46 AM, Ede Wolf wrote: > > > > Maybe run 'smtpd -dv -T expand -T lookup -T rules' and see how OpenSMTPD > > is translating the aliases and which rules it's matching etc. > > This is a really helpful command. Maybe using that I can be a bit more > precise in defining my

Re: OpenSMTPD-Logwatch script.

2019-09-05 Thread Edgar Pettijohn
Look for poolporg on GitHub. He has a filter-eventlog that you can look at for inspiration. Edgar On Sep 5, 2019 5:37 AM, Reio Remma wrote: > > 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,

Re: OpenSMTPD-Logwatch script.

2019-09-03 Thread Edgar Pettijohn
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: > > > >

Re: Virtual User handling

2019-09-02 Thread Edgar Pettijohn
On Sep 2, 2019 3:18 AM, Reio Remma wrote: > > 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

Re: Building 6.4.2p1 without ssl?

2019-09-02 Thread Edgar Pettijohn
Look through the archives. There was someone recently building on Debian with a similar issue. On Sep 2, 2019 2:48 AM, Ede Wolf wrote: > > Hello, > > trying to compile opensmtp it fails with openssl errors, so I've tried > to specify --without-libssl at configure time, as at least for testing

Re: Virtual User handling

2019-08-31 Thread Edgar Pettijohn
On Fri, Aug 30, 2019 at 11:14:37PM -0500, Edgar Pettijohn wrote: > On Fri, Aug 30, 2019 at 05:00:24PM +0200, Ede Wolf wrote: > > Hello, > > > > > > Semi complete example at the bottom. I'll leave it to you to reverse translate > to the old syntax. I didn't notice ti

Re: Virtual User handling

2019-08-30 Thread Edgar Pettijohn
On Fri, Aug 30, 2019 at 05:00:24PM +0200, Ede Wolf wrote: > Hello, > > Semi complete example at the bottom. I'll leave it to you to reverse translate to the old syntax. I didn't notice till after I was done and am too lazy to change it. :) Also noticed while re-reading smtpd.conf(5) there is a

Re: Question about match auth with the new syntax.

2019-08-28 Thread Edgar Pettijohn
On Aug 28, 2019 1:52 PM, Reio Remma wrote: > > 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

Re: stumped on virtual aliases

2019-08-24 Thread Edgar Pettijohn
n smtpd -F -v -T all and not getting anything on the > command line. -F logs to syslogd. If you want to see it try `smtpd -dv -T all' Not entirely helpful, but I switched to sql tables because I couldn't figure out a similar situation. Edgar > > > regards to all on a sultry Saturday ev

Re: stumped on virtual aliases

2019-08-24 Thread Edgar Pettijohn
On Sat, Aug 24, 2019 at 04:14:21PM +0200, Joseph A Borg wrote: > I???m trying to match an email: nos...@domain.tld to expand to > webmas...@domain.tld and deliver to local mailbox. > > My setup is pretty simple and works well for virtual mailboxes linked to a > couple of virtual domains. now

Re: table api question

2019-08-24 Thread Edgar Pettijohn
On Sat, Aug 24, 2019 at 08:19:00AM +, gil...@poolp.org wrote: > 24 ao??t 2019 02:59 "Edgar Pettijohn" a ??crit: > > > I am writing a table-lua, however the table_lua_update function doesn't > > appear to be called. > > Here are relevant pieces of the code.

table api question

2019-08-23 Thread Edgar Pettijohn
I am writing a table-lua, however the table_lua_update function doesn't appear to be called. Here are relevant pieces of the code. The lookup function works. However, it would be more ideal to have the update() called early to fill in the tables for the other functions. As is the lookup() has

Re: filter assistance requested

2019-08-20 Thread Edgar Pettijohn
On Aug 20, 2019 4:29 AM, Gilles Chehade wrote: > > On Mon, Aug 19, 2019 at 01:48:05PM -0500, Edgar Pettijohn wrote: > > Nothing urgent here. Probably can wait for filter documentation. However, > > I've been > > playing with filters off and on with limited success. It s

filter assistance requested

2019-08-19 Thread Edgar Pettijohn
0387a|c0002b41f6bd164d| Mon, 19 Aug 2019 13:38:53 -0500 (CDT) filter|0|1566239933.836673|smtp-in|data-line|c0002b41f6bd164d|ef8747a12860387a|From: Edgar Pettijohn | filter-dataline|ef8747a12860387a|c0002b41f6bd164d|From: Edgar Pettijohn filter|0|1566239933.836681|smtp-in|data-line|

Re: AUTH failures requires restarting smtpd

2019-08-10 Thread Edgar Pettijohn
On Aug 10, 2019 1:05 PM, Gilles Chehade wrote: > > On Mon, Jul 22, 2019 at 11:52:45AM -0500, Edgar Pettijohn wrote: > > > > On Jul 22, 2019 8:17 AM, Andreas Karlsson wrote: > > > > > > On 2019-07-21 18:25, Edgar Pettijohn wrote: > > > &g

Re: AUTH failures requires restarting smtpd

2019-07-22 Thread Edgar Pettijohn
On Jul 22, 2019 8:17 AM, Andreas Karlsson wrote: > > On 2019-07-21 18:25, Edgar Pettijohn wrote: > > Not sure exactly when this started, but I get authentication errors that > > require smtpd to be restarted. Here are some logs and other pertinent data. > > > > Th

AUTH failures requires restarting smtpd

2019-07-21 Thread Edgar Pettijohn
Not sure exactly when this started, but I get authentication errors that require smtpd to be restarted. Here are some logs and other pertinent data. Thanks, Edgar # $OpenBSD: smtpd.conf,v 1.9 2016/05/03 18:43:45 jung Exp $ # This is the smtpd server system-wide configuration file. # See

Re: filter feedback/help request

2019-07-05 Thread Edgar Pettijohn
Turned out to be a line buffering issue. The following works. #!/usr/bin/perl open(my $fh, '>', '/tmp/test.txt'); select(STDOUT); $|++; select($fh); $|++; print STDOUT "register|report|smtp-in|*\n"; print STDOUT "register|ready\n"; while ( my $line = <> ) { print $fh "$line"; } close

Re: what's your LMTP use-case

2019-07-05 Thread Edgar Pettijohn
On Jul 5, 2019 9:57 AM, Gilles Chehade wrote: > > helo, > > this is just a question out of curiosity > > I know plenty of people use the lmtp action to deliver mail through LMTP > and I'm genuinely curious: what is your use-case ? > > Why do you deliver to LMTP ? > > -- > Gilles Chehade   

filter feedback/help request

2019-07-04 Thread Edgar Pettijohn
I've been playing around with filters for a few hours, but I can't seem to get perl or lua scripts to work. Here is a basic shell script that works. #!/bin/sh echo "register|report|smtp-in|*" echo "register|ready" while read -r line; do echo "$line" >> /tmp/test.txt done However,

Re: LMTP delivery broken in 6.5?

2019-05-23 Thread Edgar Pettijohn
On May 23, 2019 1:38 AM, mabi wrote: > > Hello, > > I upgraded my OpenBSD 6.4 MX server running OpenSMTPD 6.4 to OpenBSD 6.5 > running OpenSMTPD 6.5 but unfortunately had to revert back to 6.4 because > mail delivery to Dovecot using LMTP did not work anymore. Is it possible that > LMTP mail

Re: problem with resolution aliases after upgrade to 6.5

2019-05-05 Thread Edgar Pettijohn
Not sure if it's necessary, but it wouldn't hurt to try restarting smtpd and see if it works. On May 5, 2019 4:59 PM, Sergey Bronnikov wrote: > > Hello! > > I've found that smtpd behaves suspiciously with different values with > the same key in aliases file. > > aliases(5) allows to append

Re: Relaying to 2 SMTP servers

2019-04-17 Thread Edgar Pettijohn
I think you need to provide more information about your exact requirements. On Apr 17, 2019 7:51 AM, sel...@linagora.com wrote: Hi, I would like to know if it is possible to deliver a mail to 2 SMTP servers using OpenSMTPD. Thanks for your help & Regards --  Simon Elbaz @Linagora Mob: +33

Re: OpenSMTPD Extras

2019-03-23 Thread Edgar Pettijohn
On Mar 23, 2019 11:22 AM, This wrote: > > I'm running opensmtpd 6.0.3p1-2 on Artix Linux. I'd like to get Extras for sqlite support, so I did everything according to instuctions from here: https://github.com/OpenSMTPD/OpenSMTPD-extras > > After some turbulence I got the created path:

Re: 550 invalid recipient issue

2019-03-18 Thread Edgar Pettijohn
On Mar 18, 2019 9:53 PM, Gabriele Tofano wrote: > > > > On Mar 18, 2019, at 9:56 PM, Gabriele Tofano > > wrote: > > > > > >> On Mar 18, 2019, at 8:06 PM, Thomas Bohl > >> wrote: > >> > >>> The configuration loaded is correct as I see the daemon is loading the > >>> correct certificates

Re: 550 invalid recipient issue

2019-03-16 Thread Edgar Pettijohn
On Mar 16, 2019 5:09 PM, Thomas Bohl wrote: > > > Both files are looking good/same as before and local delivery with sendmail > > does not work: > > > > ga...@server.com... Connecting to [127.0.0.1] via relay... > > 220 mail.server.com ESMTP OpenSMTPD > EHLO mail.server.com > >

Re: OpenSMTPD with PAM

2019-03-11 Thread Edgar Pettijohn
On Mar 11, 2019 4:43 PM, Bryan Harris wrote: > > When I install it on RHEL 7 I get this file, so maybe it works already. > > [root@bi2 ~]# cat /etc/pam.d/smtp.opensmtpd > #%PAM-1.0 > auth   include    password-auth > account    include    password-auth > > I guess dovecot and PAM is a

Re: Upgrade from OpenBSD 6.2-stable to 6.4-stable, new syntax .. mlmmj anyone?

2019-02-05 Thread Edgar Pettijohn
On Feb 5, 2019 5:57 AM, Tor Houghton wrote: > > Hello, > > In 6.2 smtpd.conf, I had the following syntax for delivery to mlmmj: > > accept from any for domain virtual \ >   deliver to mda "/usr/local/bin/mlmmj-recieve -L > /var/spool/mlmmj/%{rcpt.user:lowercase|strip}/" > Try: action

Re: Support of plus character in email address

2019-01-02 Thread Edgar Pettijohn
On Jan 2, 2019 9:43 AM, mabi wrote: > > ‐‐‐ Original Message ‐‐‐ > On Wednesday, January 2, 2019 3:16 PM, Edgar Pettijohn > wrote: > > > I recently switched to dspam. It ties into smtpd very similarly to amavis > > Plus it doesn't appear to

Re: Support of plus character in email address

2019-01-02 Thread Edgar Pettijohn
On Jan 2, 2019 7:41 AM, mabi wrote: > > ‐‐‐ Original Message ‐‐‐ > On Wednesday, January 2, 2019 1:53 PM, Oscar Carlsson > wrote: > > > As far as I know sub-addressing is enabled by default. I haven't found > > anything in my configuration that explicitly enables it, but it works > >

Re: Thoughts and queries (n=1) on the filter API

2018-12-23 Thread Edgar Pettijohn
On Dec 23, 2018 5:27 AM, Gilles Chehade wrote: > > On Sun, Dec 23, 2018 at 12:06:02PM +0100, Aham Brahmasmi wrote: > > Bonjour Monsieur Gilles, > > > > Merci beaucoup for your exhaustive explanations. > > > > > > 1) What is the difference between the "report" and "filter" prefixes? > > > > My

Re: Rule to prevent spam from my domain

2018-12-19 Thread Edgar Pettijohn
On Wed, Dec 19, 2018 at 11:37:31PM +, Mik J wrote: > Hello, > > I have wrote rules for my opensmtpd but some spams are passing through. > > The ones that I go through have a source like em...@mydomain.org and are sent > to i...@mydomain.org > I'm wondering if some of you have written this

Re: Issues with Thunderbird and STARTTLS (Pipelining not supported)

2018-12-17 Thread Edgar Pettijohn
On Dec 17, 2018 6:49 AM, Matt Schwartz wrote: > > Right off the bat, I think the mask-src might be causing a problem. I know that Thunderbird does some weird stuff and it doesn't play well with OpenSMTPD's correct implementation of smtps but you're using starttls. So instead of mask-src, try

Re: FAQ gone?

2018-12-12 Thread Edgar Pettijohn
I feel the manual pages are really enough. However, somesort of wiki that the userbase could keep updated without intervention may work out. Edgar -- You received this mail because you are subscribed to misc@opensmtpd.org To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org

Re: parse.y patch

2018-12-03 Thread Edgar Pettijohn
On Dec 3, 2018 3:57 AM, Gilles Chehade wrote: > > On Sun, Dec 02, 2018 at 07:02:14PM -0600, Edgar Pettijohn wrote: > > I think this was probably an oversight. > > > > no, this wasn't an oversight. > > the new grammar used TAG, not TAGGED which will be rem

Re: parse.y patch + smtpd.conf.5 patch

2018-12-02 Thread Edgar Pettijohn
ons tagged with the given .Ar tag . On Sun, Dec 02, 2018 at 07:02:14PM -0600, Edgar Pettijohn wrote: > I think this was probably an oversight. > > Index: parse.y > === > RCS file: /cvs/src/usr.sbin/smtpd/parse.y,v > retr

parse.y patch

2018-12-02 Thread Edgar Pettijohn
I think this was probably an oversight. Index: parse.y === RCS file: /cvs/src/usr.sbin/smtpd/parse.y,v retrieving revision 1.232 diff -u -p -u -r1.232 parse.y --- parse.y 30 Nov 2018 15:33:40 - 1.232 +++ parse.y 3

Re: Mail loops when relaying and using smtp auth

2018-11-28 Thread Edgar Pettijohn
I think the full config minus pki stuff would be useful. Till then look at tags. It may be useful. listen on 587 auth ... tag authed accept tagged authed ... On Nov 28, 2018 5:32 PM, Thomas Smith wrote: > > Hi, > > I’m running OpenSMTPd on OpenBSD 6.3. > > The server is used primarily as a

Re: mail.maildir junk patches

2018-11-25 Thread Edgar Pettijohn
ll had been written ? to cover which case ? > > Gilles > I had considered this also, then thought there may be other unknown cases that this would cover in advance. I will rewrite and resend. > > On Sat, Nov 24, 2018 at 11:02:41AM -0600, Edgar Pettijohn III wrote: > > make the

smtpd.c patch

2018-11-24 Thread Edgar Pettijohn III
pledge flock doesn't seem necessary any longer? Index: smtpd.c === RCS file: /cvs/src/usr.sbin/smtpd/smtpd.c,v retrieving revision 1.306 diff -u -p -u -r1.306 smtpd.c --- smtpd.c    16 Nov 2018 20:55:59 -    1.306 +++ smtpd.c   

Re: tls debugging

2018-11-24 Thread Edgar Pettijohn III
On 11/22/18 1:11 AM, Gilles Chehade wrote: On Tue, Nov 13, 2018 at 09:59:29PM -0600, Edgar Pettijohn III wrote: I have the following line on my laptops smtpd.conf: action "relay" relay host "smtp+tls//label@domain:587" auth tls no-verify I had to add the no-ve

mail.maildir junk patches

2018-11-24 Thread Edgar Pettijohn III
make the junk header customizable like so: action "local" maildir junk "X-Spam-Flag: YES" Index: mail.maildir.8 === RCS file: /cvs/src/usr.sbin/smtpd/mail.maildir.8,v retrieving revision 1.5 diff -u -p -u -r1.5 mail.maildir.8 ---

Re: Spam, SPF check and SRS?

2018-11-14 Thread Edgar Pettijohn
On Nov 14, 2018 1:28 PM, Henry Jensen wrote: > > Hi, > > new OpenSMTPD user here. I did (and still do) administrate Debian with Exim for several years and wanted to try something different. > > So I got myself a server with OpenBSD and OpenSMTPD. > > So far I am impressed that a fully

tls debugging

2018-11-13 Thread Edgar Pettijohn III
I have the following line on my laptops smtpd.conf: action "relay" relay host "smtp+tls//label@domain:587" auth tls no-verify I had to add the no-verify for some reason with the upgrade to 6.4. I was trying to figure out why tls was failing, so I started testing with openssl s_client and

Re: upgrade to 6.4

2018-11-09 Thread Edgar Pettijohn III
ov 4, 2018 at 3:37 PM Edgar Pettijohn III wrote: On 11/4/18 2:32 PM, Bryan Harris wrote: I made the exact same mistake of not using “from any” on my relay rule. Scratching my head reading the rule trace was a good learning experience. I still don’t understand how to correctly setup virtuals l

  1   2   3   >