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

2020-08-15 Thread Edgar Pettijohn
hat we know: It has something to do with the mysql-tables. What I don???t > understand is, what opensmtpd is trying to do which leads to that error. To > my understanding opensmtpd should only try to connect to the database if it > needs to read from the tables, which ??? if just starting up ??? obviously is > not the case. > > If you try something like: # smtpd -dv You should get some useful messages from table-mysql if its not connecting or what have you. Edgar

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

2020-08-15 Thread Edgar Pettijohn
is not too complex: > opensmtpd should > > 1. take e-mails on port 25, check via mysql if it's for a domain it is > responsible for and then forward via lmtp to dovecot which then takes care of > everything else (including rejecting unknown users). > 2. Authenticate users on port 465 and 587 against mysql and forward their > mails if successful. > > Later on I'd like to add rspamd and DKIM??? but one step at a time. > > I would be glad if anyone could shed some light on the whole mysql-hassle and > knows what prevents my opensmtpd from doing what I want it to do. > > Thank you in advance! > > Fabian Edgar

Re: Is LDAP+SSL supported?

2020-07-25 Thread Edgar Pettijohn
he writing of a table-ldap with a modern library. > I will keep an eye on this then. I think the plan is to move to the table-procexec. Similar to the filters and you would be able to write an ldap backend in any language. Edgar

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
; } > } > > service imap-login { > inet_listener imaps { > port = 993 > } > } > > passdb { > driver = passwd-file > args = scheme=SHA512-CRYPT username_format=%n /etc/dovecot/users > } > username_format=%u Since your database has the full username. Or you can probably just omit it. > userdb { > driver = passwd-file > args = username_format=%n /etc/dovecot/users > override_fields = uid=vmail gid=vmail home=/var/mail/vmail/%d/%n > } > > mail_location = maildir:~/Maildir > > > /etc/dovecot/users > == > da...@birman.com:{SHA512-CRYPT}$6$... > mo...@birman.com:{SHA512-CRYPT}$6$... Good luck, Edgar

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:

Re: mail log oddity

2020-06-11 Thread edgar
They are a little late.Edgar On Jun 10, 2020 10:08 PM, Ryan Kavanagh wrote:On Wed, Jun 10, 2020 at 10:00:08PM -0500, Edgar Pettijohn wrote: > Saw this in the maillog today. Any ideas what they are trying to do? > >  249c054a86af9328 smtp failed-command command="MAIL FROM: <;f

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
a...@davidfavor.com (no > Smarthost or Relay Service) > > Just a raw config file will be fine, I can remove > whatever I don't require right now, like DKIM signing, > which I'll add later. > It would likely be easier if you just posted your current smtpd.conf and associated tab

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
gt; > Is it possible for us to write and use custom filter ? If yes, is there any > > information / resources available in the web ? > > > > Jacky > > > You can get the manual here: https://raw.githubusercontent.com/OpenSMTPD/OpenSMTPD/portable/smtpd/smtpd-filters.7

filter-spamassassin.pl

2020-04-01 Thread Edgar Pettijohn
Obviously you will also need the spamassassin daemon running. I've been using it for about 3 days so far without issues, though there may still be bugs lurking. One is likely to be the need for a message size limit. Not sure what that should be though. Edgar

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
, Edgar

perl module for hashing/checking passwords

2020-03-11 Thread Edgar Pettijohn
-web.com/OpenSMTPD-Password-0.01.tar.gz Edgar

Re: filter question

2020-03-09 Thread Edgar Pettijohn
    described in MAIL FILTERING, below. > > So without testing (you should do that yourself anyway) I think what you > want would be: > > table blksender file:/etc/blksender > filter blksender phase mail-from match mail-from junk > listen on filter blksender > Also look at table(5) '*' is only allowed on the domain side of the '@'. Edgar

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
l to always use TLS - and bounce more or less immediately, if the sending mailserver registers that the receiving mailserver is unable to meet our requirements regarding TLS? Kind regards Søren Aurehøj I guess you could try adding to smtpd.conf: bounce warn-interval 1s Edgar

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
suppose I could use tmux and do a `smtpd -d >/dev/null 2>&1' Just not sure if there would be any side effects. Thanks, Edgar

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
       die("invalid input for link-disconnect")     if ($2 != version)         die("version mismatch")     sid = $6     delete state[sid] } "connect" == $5 {     if ($2 != version)         die("version mismatch")     sid = $6     token = $7     src = $9     if (banned[src]) {         logit("rejecting connection from: " src)         print "filter-result|" token "|" sid "|reject|550 go away"     } else {         print "filter-result|" token "|" sid "|proceed"     } } END {     logit("filter-authban: stopping...") } Thanks, Edgar

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
it. Mainly it just made me stumble on the line and have to reread it a couple of times. Edgar

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
I ^C. Edgar

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
> But no matter what, any action in smtpd.conf is a command that is going > to get executed and a process has to have a owner, so there is going to > be a system user involved. > Something along these words should be added to the manual somewhere. I think that is a common misunderstanding for virtual setups. Edgar

Re: Auth not working on linux?

2020-01-18 Thread Edgar Pettijohn
ot;auth" with an external table created with smtpctl encrypt does work. > > Is this supposed to be working with Linux users and passwords and I am doing something wrong? > Or does auth only work with OpenBSD users/crypt? > Check it was built with Pam support and Pam is set up. Edgar

[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
onal, the recipient MUST exist in the > > table to be valid. > > Can virtual users be used with sub-addresses, e.g user+...@virtualdomain.org ? > They should work out of the box. Just sent one to myself to double check and it went through. Edgar > When I tried that (some time ago)

Re: Accept mail for all recipients

2019-10-30 Thread Edgar Pettijohn
ail-lf1-f50.google.com >> e85fb8ffeed306b1 smtp event=message address=209.85.167.50 host=mail-lf1-f50.google.com msgid=7d1551d1 from= to= size=2904 ndest=1 proto=ESMTP >> e85fb8ffeed306b1 smtp event=closed address=209.85.167.50 host=mail-lf1-f50.google.com reason=quit >> mda event=delivery evpid=7d1551d1e9537f74 from= to= rcpt=, user=smtpd method=lmtp delay=0s result=TempFail stat=Error ("RCPT TO rejected: 550 5.1.1 User doesn't exist: smtpd") > $ grep smtpd /etc/passwd Edgar > -- > > Sergey

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
nderstand how not accepting mails that you have no user to accept is a problem. > > Any insides? > > I think you need to provide more information about what you want to happen and what is happening. > > Thanks again > > > > Thanks Ede > Edgar

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
pOrg/spf/blob/master/README.md > > > > > > If you could test and report issues, it would be nice, > > > > Is it OpenBSD only atm? > > On CentOS 7: > > $ make > Makefile:26: *** missing separator.  Stop. > > Reio > > Looking at the makefile. My guess is yes, but you could try bmake and see if it gets further. Edgar

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 &

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
t; > -- > Gilles Chehade    @poolpOrg > > https://www.poolp.org    patreon: https://www.patreon.com/gilles > Not actually using it, but for dovecot to use it as a userdb as well as a passdb it needs the additional fields. Edgar

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

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 unders

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
bits for match auth and match > from local. > Match from local for local is a default rule. You have to specifically negate it if you don't want it. Edgar > Thanks! > Reio >

Re: stumped on virtual aliases

2019-08-24 Thread Edgar Pettijohn
On Sat, Aug 24, 2019 at 06:02:55PM +0200, Joseph A Borg wrote: > AFAIK I can do that Edgar, I???m already filtering on domain, so the domain > stump is not really necessary. > > this is not an urgent work situation, I???m just trying things out and spent > way too much tim

Re: stumped on virtual aliases

2019-08-24 Thread Edgar Pettijohn
remove it and see what happens. > > virtual > > action deliver_virtual_set \ > > maildir \ > > userbase > > > > # MATCHES > > # --- > > match from any \ > > for domain \ > > action valiases_set > > match from any \ > > for domain \ > > action deliver_virtual_set > > > > > Hope this helps. Edgar

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
to do the work of both. Any help is appreciated. Thanks, Edgar table_lua.c static int table_lua_update(void) { int ret; lua_getglobal(L, "update"); lua_pushnil(L); if (lua_pcall(L, 1, 1, 0)) { log_warnx("warn: update: %s"

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
"end of headers\n"; $inbody++; } if ($line eq '.') { print $fh "end of message\n"; $inbody--; } print $fh "filter-dataline|$token|$sid|$line\n"; print STDOUT "filter-dataline|$token|$sid|$line\n"; }

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
uch experience with lua, just wanted to test something else when I couldn't get perl working. I also tested the filter-eventlog and the filters Joerg posted. All of which worked in my very basic testing/experimenting. Thanks in advance for any help. Edgar #!/usr/bin/perl open (my $fh, '&g

Re: LMTP delivery broken in 6.5?

2019-05-23 Thread Edgar Pettijohn
0.1   248  1172 ??  I 10:03PM    0:00.00 > /usr/libexec/mail.lmtp -f some...@domain.tld -d /var/dovecot/lmtp > m...@mydomain.tld > > Any ideas what could be going wrong here? or is it possibly a bug in 6.5? > > Best regards, > Mabi > > > I haven't gotten a

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: "Pipelining not supported" when connecting to port smtp or submission through OpenSSL command line utility

2019-01-19 Thread edgar
On Sat, Jan 19, 2019 at 08:12:29PM +0100, Johannes Krottmayer wrote: > Hello, > > I have a question or a problem of understanding. > > When I try to connect through the the command line utility openssl to > port smtp or submission I get this output: > > $ openssl s_client -connect odin42:25

portable build failure

2019-01-16 Thread edgar
diff --git a/smtpd/table.c b/smtpd/table.c index c18256a3..12f2e0e6 100644 --- a/smtpd/table.c +++ b/smtpd/table.c @@ -63,7 +63,9 @@ static unsigned int last_table_id = 0; static struct table_backend *backends[] = { _backend_static, +#ifdef HAVE_DB_API _backend_db, +#endif

Re: Mail to root not working anymore with 6.4

2019-01-12 Thread edgar
9718 from=<> to=< > > fa...@nuc.joubbi.se> size=2363 ndest=1 proto=ESMTP > > Jan 12 12:25:27 nuc smtpd[59733]: af9c714b973cbaf9 smtp disconnected > > address=local host=nuc.example.com reason=quit > > Jan 12 12:25:28 nuc smtpd[59733]: af9c714a3d709f50 smtp failed-comm

Re: Confused by certificates

2019-01-06 Thread edgar
; > pki $pki_host cert? "/etc/ssl/sally.org.il.crt" I did too originally. However, I was seeing weird tls errors in the log after switching to 6.4 so i switched the cert to the fullchain.pem and they went away. mail$ doas egrep "TLS failed" /var/log/maillog mail$ Edgar

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
appear to need the additional table, and delimeters still work out of the box. Everything you need to know is included in the README plus the specific readme for postgres backend. Might be worth a look. Plus it doesn't seem to be such a memory hog as the perl alternatives. I'm pretty sure tha

Re: Check first if user exists before sending to Amavis for scanning

2018-12-31 Thread edgar
On Mon, Dec 31, 2018 at 10:46:45PM +, mabi wrote: > ??? Original Message ??? > On Monday, December 31, 2018 9:44 PM, wrote: > > > be forwarned I haven't used amavis in a few years. > > No problem you got it right anyway, amavis listens on port 10024 and sends it > back to OpenSMTPD

Re: Check first if user exists before sending to Amavis for scanning

2018-12-31 Thread edgar
On Mon, Dec 31, 2018 at 06:55:48PM +, mabi wrote: > ??? Original Message ??? > On Monday, December 31, 2018 7:29 PM, wrote: > > > pretty sure you just need... > > action "relay_amavis" relay host smtp://127.0.0.1:10024 virtual > > That would have been very nice, unfortunately the

Re: Check first if user exists before sending to Amavis for scanning

2018-12-31 Thread edgar
On Mon, Dec 31, 2018 at 08:47:29AM +, mabi wrote: > Hi, > > I have an OpenSMTPD on OpenBSD 6.4 MX server which first scans mails with > Amavis (SpamAssassin + ClamAV) and then delivers it using LMTP to Dovecot. > Now all mails first go through Amavis which means that even if the mailbox in

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
e of you have written this kind of rule ? > > reject from source ! sender for domain > > > Regards Please provide your /etc/mail/smtpd.conf And perhaps some logs where the spammers are getting through. You shouldn't allow your server to be used as a relay without authentication

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

2018-12-17 Thread Edgar Pettijohn
.0... >>>> >>>> Any workarounds? >>>> >>>> Also I was wondering if OpenSMTPD supports other authentication types additionally to PLAIN and LOGIN? >>>> >>>> Regards, >>>> Mabi >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> -- >>>> You received this mail because you are subscribed to misc@opensmtpd.org >>>> To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org >>>> >> I recently had a typo causing the wrong pki certs to be used and for some reason the logs were complaining about pipelining. Perhaps test with openssl s_client if the certs could potentially be the problem. Edgar

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

  1   2   3   >