Reject mails with a customized error messages

2022-07-07 Thread Matthias Teege
Hello, I would like to reject mails with a customized error message. As far as I understand the documentation, I cannot pass any additional parameters to a "reject" command. Am I missing something? How can I return a specific error message? Many thanks Matthias

Re: Ignore subdomain in lmtp/rcpt-to

2017-11-02 Thread Matthias Teege
On Thu, Nov 02, 2017 at 01:38:48PM +0100, Thomas Bohl wrote: Hi, > > sorry, my fault. Filename is "mailname" not "mailme". I added > > :-) I was going to commend on the typo, but I didn't want to appear > nitpicky and assumed it was just in the mail. I think it was a flashback from qmail. In

Re: Ignore subdomain in lmtp/rcpt-to

2017-11-02 Thread Matthias Teege
On Thu, Nov 02, 2017 at 01:10:29PM +0100, Thomas Bohl wrote: Hi, > > cat mailme> example.com sorry, my fault. Filename is "mailname" not "mailme". I added example.com to "/etc/mail/mailname" and it works, with and without subaddressing. Extra aliases not needed Sorry Matthias -- You

Re: Ignore subdomain in lmtp/rcpt-to

2017-11-02 Thread Matthias Teege
On Wed, Nov 01, 2017 at 07:37:48PM -0500, Edgar Pettijohn wrote: Hi, > On Wed, Nov 01, 2017 at 10:31:19PM +0100, Matthias Teege wrote: > > On Wed, Nov 01, 2017 at 08:43:01PM +0100, Thomas Bohl wrote: > > > I think you will get the desired results with aliases. mostly :)

Re: Ignore subdomain in lmtp/rcpt-to

2017-11-02 Thread Matthias Teege
On Wed, Nov 01, 2017 at 11:03:58PM +0100, Thomas Bohl wrote: Hi, > Can you post your full configuration? Because it should work > immediately. See: table aliases file:/etc/mail/aliases table domains file:/etc/mail/domains table passwd passwd:/etc/mail/passwd table virtuals

Re: Ignore subdomain in lmtp/rcpt-to

2017-11-01 Thread Matthias Teege
On Wed, Nov 01, 2017 at 08:43:01PM +0100, Thomas Bohl wrote: Hello! > > If I send a message from local the FQDN is added so the mail is send > > to u...@host.example.com. Is it possible to ignore the "host." part or > > rewrite the address to u...@example.com? > > # echo example.com >

Ignore subdomain in lmtp/rcpt-to

2017-11-01 Thread Matthias Teege
Hello! I'm deliver my mail with lmtp using the following config line: accept from local for local alias deliver to lmtp "/var/dovecot/lmtp" rcpt-to If I send a message from local the FQDN is added so the mail is send to u...@host.example.com. Is it possible to ignore the "host." part or

Re: address extensions

2016-09-12 Thread Matthias Teege
On Wed, Aug 31, 2016 at 12:49:35PM +0200, Gilles Chehade wrote: Hi, > On Sat, Aug 27, 2016 at 10:02:31AM +0200, Matthias Teege wrote: > > > How to I setup extensions addresses in opensmtpd? > > the upcoming 6.0.0 release will not support it, but next minor re