filter testing perl script

2023-01-13 Thread Edgar Pettijohn
believe the documentation provided via `perldoc' should be sufficient, but if it isn't feel free to hit me up offlist. Hope it helps someone out there trying to get a filter/reporter working. Edgar

RE: Am I running an open relay? And a few questions.

2022-05-04 Thread edgar
Sent via the Samsung Galaxy A10e, an AT 4G LTE smartphone Original message From: Josey Smith Date: 5/4/22 6:48 AM (GMT-06:00) To: misc@opensmtpd.org Subject: Am I running an open relay? And a few questions. Hi,So after a lot of tinkering I've gotten my little personal

Re: filter testing

2022-04-17 Thread Edgar Pettijohn
nt out on it though. I had it almost complete and then realized a better way and the better way ended up being a complete rewrite. Edgar On Sat, Apr 16, 2022 at 01:04:21PM -0500, Edgar Pettijohn wrote: I've written a perl script to help test filters. It can be found at: http://www.pettijohn-web.com/

filter testing

2022-04-16 Thread Edgar Pettijohn
run into any problems please send examples of what you expected vs what you got. Or patches would be great. Edgar

Re: Why isn't there a simple way to add a catchall alias to OpenSMTP ?

2022-04-15 Thread Edgar Pettijohn
? Thanks. I recall someone on the list trying to solve this problem awhile back. As I recall they needed to have a copy of all inbound emails saved for some reason or another. I think for their use case they had to run a second postfix instance to handle the catchall. Might be worth traversing the list archives. Edgar

Re: Why isn't there a simple way to add a catchall alias to OpenSMTP ?

2022-04-11 Thread edgar
Sent via the Samsung Galaxy A10e, an AT 4G LTE smartphone Original message From: Beau Ford Date: 4/11/22 10:06 AM (GMT-06:00) To: misc@opensmtpd.org Subject: Re: Why isn't there a simple way to add a catchall alias to OpenSMTP ? Josey,On Mon, 11 Apr 2022, Josey Smith

Re: Filter Logging

2022-03-21 Thread edgar
esses in the following> > formats:> > > > @dailynuisance.tld> > bigmarketing.tld> > @weneverunsubsribeanyone.tld> > > > First of all, are these valid formats for the filter?> > I see I've set up blacklists with a table like this:> > match \&g

Re: mutt can't send emails via localhost 25 with error 503 5.5.1

2022-03-06 Thread Edgar Pettijohn
set ssl_verify_host=no Pete. I'm using thunderbird but its a similar setup. My smtpd.conf: edgar@bsd:~ $ cat /usr/local/etc/mail/smtpd.conf #   $OpenBSD: smtpd.conf,v 1.10 2018/05/24 11:40:17 gilles Exp $ # This is the smtpd server system-wide configuration file. # See smtpd.con

Re: Message submission vs message acceptance/relay?

2022-03-05 Thread edgar
Sent via the Samsung Galaxy A10e, an AT 4G LTE smartphone Original message From: Dave Anderson Date: 3/5/22 12:08 PM (GMT-06:00) To: Thomas Bohl Cc: misc@opensmtpd.org Subject: Re: Message submission vs message acceptance/relay? Thinking more about this, I understand that

Re: Aliases trouble

2022-01-24 Thread Edgar Pettijohn
, John Batteen It could very well be a dovecot issue. What does your "action" line look like for delivering mail. Edgar

Re: restart necessary on certificate upgrade (letsencrypt)?

2022-01-09 Thread edgar
trivial addition. I don't believe libevent has file watchers so you'd have to hack your own or bring in more dependencies. Probably easier to just have cron do your cert renewal and restart if necessary. Edgar 

Re: Regex in db table

2021-08-27 Thread Edgar Pettijohn
e fly. You can update `file' tables with `smtpctl update table helotable'. If it is a bug in the db table I'm willing to bet it won't be fixed. As I recall it is on the chopping block. Don't think its built by default on portable at least. Edgar

Re: Regex in db table

2021-08-25 Thread Edgar Pettijohn
O mytest" or "HELO mytett" are matched. How can I use regular expressions in db files? Text files don't seem to be an option, because they are only read on startup so I cannot update them on the fly. Thanks in advance. || Could you resend with proper line breaks. This is difficult to read. Edgar

Re: Syntax Error

2021-08-05 Thread Edgar Pettijohn
the maillog shows multiple permission errors early on and one of the daemons closes its socket if I'm reading correctly. I would do a `pgrep smtpd` and make sure all the daemons are still running. Off the top of my head I think there should be 4 or 5 going. Edgar Since you didn't show your error

Re: rspamd issue

2021-06-09 Thread Edgar Pettijohn
al error" Jun 9 15:01:10 mail smtpd[65808]: e819ce7095fd1031 smtp disconnected reason=quit I appreciate any pointers diana I would recommend running rspamd in the foreground and see what it says when it gets a connection and go from there. Edgar

Re: How to copy all outgoing mails based on sender definition

2021-06-08 Thread Edgar Pettijohn
Sorry for spamming the list, but noticed that part of the script was missing for some reason. line 66 should be concluded with Edgar On 6/8/21 4:31 PM, Edgar Pettijohn wrote: On 6/7/21 6:52 PM, Edgar Pettijohn wrote: On 6/7/21 6:35 PM, Thomas Bohl wrote: So I have a list of users

Re: How to copy all outgoing mails based on sender definition

2021-06-08 Thread Edgar Pettijohn
On 6/7/21 6:52 PM, Edgar Pettijohn wrote: On 6/7/21 6:35 PM, Thomas Bohl wrote: So I have a list of users defined on a server and I want to copy all mails of users with a specific mail domain. I don't think that is possible without writing a custom filter or mda. Do you need a copy

Re: How to copy all outgoing mails based on sender definition

2021-06-07 Thread Edgar Pettijohn
) all of the above Edgar

Re: Relay based on either auth or cert?

2021-05-12 Thread Edgar Pettijohn
e with a password.  Is this possible? Sean You may be able to coax `auth-optional' to do what you want. Edgar 

Re: Relay based on either auth or cert?

2021-05-12 Thread Edgar Pettijohn
e with a password.  Is this possible? Sean You could have separate listen directives on separate ports. Of course the users would have to set up their clients correctly. Edgar 

Re: dkim signing integrated in opensmtpd?

2021-05-10 Thread Edgar Pettijohn
On May 10, 2021 9:35 AM, Harald Dunkel wrote:On 5/10/21 3:14 PM, Martijn van Duren wrote: > There's filter-dkimsign in packages, which is also mentioned in > smtpd.conf. I don't think there's a more lightweight solution > possible. > I had found your web site

[patch] RCPT TO with quoted user part

2021-04-10 Thread Edgar Pettijohn
Added a block to smtp_mailaddr() in smtp_session.c to allow for quoted usernames. Only tested on my laptop and seems to work. However, I'm thinking it might should be moved past the point of splitting on ':'. Edgar Index: smtp_session.c

Re: RCPT syntax error from bank

2021-04-04 Thread Edgar Pettijohn
On Apr 4, 2021 5:36 PM, "Anthony J. Bentley" wrote:Hi Peter, Peter Nicolai Mathias Hansteen writes: > It's interesting that the subject turns up here, when there is a > fresh (and good IMO) blog post out about email address validation out, > "Your E-Mail Validation Logic is Wrong" > by

Re: RCPT syntax error from bank

2021-04-04 Thread Edgar Pettijohn
; to a GMail account to receive it. > It is. Seemed like a good problem for a filter to solve, but it looks like smtpd verifies the syntax before sending to filterland. You should write their postmaster and complain. Edgar > -- > Anthony J. Bentley >

Re: Pluses in addresses do not work as expected

2021-01-31 Thread Edgar Pettijohn
> Could someone explain this example to me, please. > > I'd really like to remove my dunce cap on this one. > Thanks, > Chris Bennett > > > Edgar

Re: mails not sent when using alias as recipient

2021-01-17 Thread Edgar Pettijohn
On Sun, Jan 17, 2021 at 06:33:29PM +0100, Yvan Masson wrote: > Hi list, > > I have two Debian servers that need to be able to send notification emails > via a relay. Their configuration is identical, but only the first works > properly. On the second, sending to aliases does not work: > > > $

Re: how to watch opensmtpd filters at work?

2021-01-07 Thread edgar
On Jan 7, 2021 5:45 AM, Harald Dunkel wrote:Hi folks, for debugging I would like to know which "match" line does actually match the incoming EMails. Is there some option for opensmtpd to watch it? "-v" seems to be insufficient. Every insightful comment would be highly appreciated.

Re: smtpd shutting down : "process pony socket closed"

2020-10-21 Thread edgar
p.net" filter "fullfilter" chain { \     nofcrdns, dyn_rdns, \     malware_cidr, malware_rdns, malware_helo, malware_ehlo, malware_senders, \     spam_cidr, spam_rdns, spam_helo, spam_ehlo, spam_senders, rbl \     } listen on all tls pki "hostname.domain.tld" no-dsn filter "fullfilter" Any pointers to start troubleshooting this ? Run your filter from a terminal and feed it line by line what smtpd would feed it. Eventually you will discover the problem. Edgar Thanks, Best regards, Antonin

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: 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

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: 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   

  1   2   3   >