filter testing perl script

2023-01-13 Thread Edgar Pettijohn
list, It looks like I finished this little helper script for testing smtpd filters, but forgot about it... Anyway it can be found at http://www.pettijohn-web.com/new-filter-test.pl. Theres even a SHA512 file so you can make sure you got all the right bits in all the right spots. I

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
I've written a perl script to help test filters. It can be found at: http://www.pettijohn-web.com/filter-test.pl Its not 100% complete but it should be helpful enough in finding common problems. Such as forgetting fflush() in awk filters or swapping the session id and opaque tokens. If you

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

2022-04-15 Thread Edgar Pettijohn
On 4/14/22 14:00, Beau Ford wrote: On Thu, 14 Apr 2022, Beau Ford wrote: 1) Am I still using my aliases that are defined in: table aliases file:/usr/local/etc/mail/aliases action "local_mail" mbox alias ... or are those superceded now by the catchall ? It turns out I am *not* using

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

2022-03-06 Thread Edgar Pettijohn
On 3/6/22 07:58, Pete Long wrote: On Sun, Mar 06, 2022 at 02:28:54PM +0100, Jiri Navratil wrote: Hi, I'm using notebook with OpenBSD and every email from mail and from mutt goes firstly to OpenSMTPD on localhost and then are relayed to my server with static IP. I have been using in OpenBSD

Re: Aliases trouble

2022-01-24 Thread Edgar Pettijohn
On 1/24/22 13:36, John Batteen wrote: Greetings list, With the following config, with the secondary domain anonymized to bd.net: https://batteen.com/smtpd.conf.txt and "fem: john" contained within /etc/mail/aliases %{dest.user} is not expanding to the post-alias address as I expected. 

Re: Regex in db table

2021-08-27 Thread Edgar Pettijohn
On 8/26/21 6:25 AM, Jack wrote: Could you resend with proper line breaks. This is difficult to read. Sorry, the line breaks got messed up. I'm using OpenSTMPD 6.8 portable and want to filter on DNS names or HELO strings with regular expressions. Therefore I created the following minified

Re: Regex in db table

2021-08-25 Thread Edgar Pettijohn
On 8/25/21 2:43 AM, Jack wrote: Hello list, I already posted this on the bug tracker of OpenSMTPD, but maybe I'm doing something wrong in the config and you can help me: I'm using OpenSTMPD 6.8 portable and want to filter on DNS names or HELO strings with regular expressions. Therefore I

Re: Syntax Error

2021-08-05 Thread Edgar Pettijohn
On 8/5/21 9:56 AM, Vigneshwaran Ravichandran wrote: Hi Thomas, I am attaching my log file for reference. -Original Message- From: Thomas Bohl Sent: Thursday, 5 August, 2021 10:24 PM To: misc@opensmtpd.org Subject: Re: Syntax Error I am Vigneshwaran R @ vgnshlvnz. I am a FreeBSD OS

Re: rspamd issue

2021-06-09 Thread Edgar Pettijohn
On 6/9/21 4:42 PM, Diana Eichert wrote: I setup an email server following the guide here, https://poolp.org/posts/2019-09-14/setting-up-a-mail-server-with-opensmtpd-dovecot-and-rspamd/ I did this over a year ago, however I never actively used this system to receive external email. I

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
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 of all: a) incoming mails b) outgoing mails

Re: Relay based on either auth or cert?

2021-05-12 Thread Edgar Pettijohn
On May 11, 2021 8:35 PM, Sean Kamath wrote:I was pondering a message Gille Chehade commented on (https://narkive.com/2puCGKoq.4) a very long time ago. He said: > The cert verification happens at the transport level, not the SMTP level > and an invalid certificate will cause TLS to abort and

Re: Relay based on either auth or cert?

2021-05-12 Thread Edgar Pettijohn
On May 11, 2021 8:35 PM, Sean Kamath wrote:I was pondering a message Gille Chehade commented on (https://narkive.com/2puCGKoq.4) a very long time ago. He said: > The cert verification happens at the transport level, not the SMTP level > and an invalid certificate will cause TLS to abort and

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
On Sun, Apr 04, 2021 at 07:03:47AM -0600, Anthony J. Bentley wrote: > Hi, > > I had an interesting occurrence today... I was performing an action > that required a confirmation code from my bank, which they sent by > email. Unfortunately the mail never arrived, because: > > Apr 4 03:25:16 axx

Re: Pluses in addresses do not work as expected

2021-01-31 Thread Edgar Pettijohn
On Sun, Jan 31, 2021 at 04:24:28PM -0600, Chris Bennett wrote: > On Sun, Jan 31, 2021 at 03:51:01PM +0100, Pascal Huisman wrote: > > Which got me out of the mess. See man smtpd.conf > > It now switches to the user before delivering. So it's not vmail as > > directory owner, but the username who is

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

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

  1   2   3   >