Re: Virtual domains & Virtual Users...

2019-11-24 Thread Andrew Swartz
Try removing "rcpt-to " from the 2nd match line and see what happens. I put it there because, in my setup, that is the only thing which prevents accepting mail for a valid virtual domain but invalid name.  But your setup has a subsequent mapping lookup in the action line which may (or may not) a

Re: Virtual domains & Virtual Users...

2019-11-23 Thread Implausibility
With some help from Andrew off-list, he provided a config that works for what I'm trying to do. It's attached below. Hopefully all you'd need to do to duplicate my success is search-and-replace example.com for your own primary (FQDN) mail server domain name (as long as it's called mail.youdoma

Re: Virtual domains & Virtual Users...

2019-11-23 Thread Implausibility
> your match rule is not correct, I'm not sure what you want to do: I want to accept mail for any of my virtual domains, for eMail addresses described in the vusers table (which contains a full eMail address (us...@example2.com) followed by whitespace, and the local user whose mailbox

Re: Virtual domains & Virtual Users...

2019-11-23 Thread Andrew Swartz
tionality by including the ability to send and receive mail >> for my list of domains, and for eMail addresses which forward to locally >> defined users -- but I can't seem to get it working, and I think the issue >> is my (mis-)understanding of how the match parameter works...

Re: Virtual domains & Virtual Users...

2019-11-23 Thread Andrew Swartz
e lines to the config: > >> table vusers file:/etc/mail/vusers >> action "vusers" maildir junk virtual >> match from any for domain rcpt-to virtual action "vusers" > I was able to get mail delivered for local users to my virtual domains > previously

Re: Virtual domains & Virtual Users...

2019-11-23 Thread gilles
if it's even needed here - virtual can't be in the match rule, it must be in your action, which is already the case > I was able to get mail delivered for local users to my virtual domains > previously without issue. > But I can't get virtual addresses working... >

Virtual domains & Virtual Users...

2019-11-23 Thread Implausibility
cpt-to virtual action "vusers" I was able to get mail delivered for local users to my virtual domains previously without issue. But I can't get virtual addresses working... I've tried a half a dozen varieties of the match command, and I keep getting 'syntax error'

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

2019-11-18 Thread Charles Collicutt
On 18 Nov 2019, at 16:24, gil...@poolp.org wrote: > > November 18, 2019 4:14 PM, "Charles Collicutt" > wrote: >> Can virtual users be used with sub-addresses, e.g user+...@virtualdomain.org >> ? >> >> When I tried that (some time ago) it failed saying that the user did not >> exist. > > It

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

2019-11-18 Thread gilles
November 18, 2019 4:14 PM, "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 table >> to

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

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

2019-11-18 Thread Charles Collicutt
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 table > to be valid. Can virtual users be used with sub-addresses, e.g u

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

2019-11-18 Thread gilles
November 17, 2019 5:19 PM, "Implausibility" wrote: > I'm reading the man pages for makemap, and there are two types of database > maps described, as per > $subject. > > What are the functional / operational differences between Primary & Virtual > Domai

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

2019-11-17 Thread Implausibility
I'm reading the man pages for makemap, and there are two types of database maps described, as per $subject. What are the functional / operational differences between Primary & Virtual Domains? When when I choose one over the other? Can I get examples of when I'd choose a ta

Re: Virtual domains

2015-03-16 Thread Jason Barbier
Look at userbase if you want to bypass having system users at all. -- Jason Barbier jab...@serversave.us On Thu, Mar 12, 2015, at 03:05 PM, Gonzalo wrote: > I mean, I don't want to create a system user per email account. > El mar 12, 2015 6:55 PM, "Edgar Pettijohn III" > escribió:

Re: Virtual domains

2015-03-14 Thread Gonzalo
Yes, sorry the delay. The problem was a permission in users files. Now is working. Thank you so much. El mar 12, 2015 9:42 PM, "Edgar Pettijohn" escribió: > > On 03/12/15 18:37, Gonzalo wrote: > > Ok, but now I have no email: > > debug: mda: all done for user ":vmail" > debug: scheduler: evp

Re: Virtual domains

2015-03-12 Thread Edgar Pettijohn
On 03/12/15 18:37, Gonzalo wrote: Ok, but now I have no email: debug: mda: all done for user ":vmail" debug: scheduler: evp:4bb1b8d779458d6b scheduled (mda) mda: new user 1f4c8dcc1b038c63 for ":vmail" debug: lka: userinfo :vmail lookup: lookup "vmail" as USERINFO in table getpwnam: -> "vmail:5

Re: Virtual domains

2015-03-12 Thread Gonzalo
Ok, but now I have no email: debug: mda: all done for user ":vmail" debug: scheduler: evp:4bb1b8d779458d6b scheduled (mda) mda: new user 1f4c8dcc1b038c63 for ":vmail" debug: lka: userinfo :vmail lookup: lookup "vmail" as USERINFO in table getpwnam: -> "vmail:5001:5001:/home/vmail" debug: mda: new

Re: Virtual domains

2015-03-12 Thread Edgar Pettijohn III
one system user will take care of it all. you could do: @domain.tld user and map all to one user. On Mar 12, 2015, at 5:05 PM, Gonzalo wrote: > I mean, I don't want to create a system user per email account. > El mar 12, 2015 6:55 PM, "Edgar Pettijohn III" > escribió: > smtpd.conf

Re: Virtual domains

2015-03-12 Thread Gonzalo
I mean, I don't want to create a system user per email account. El mar 12, 2015 6:55 PM, "Edgar Pettijohn III" escribió: > smtpd.conf(5) > *for* [*!*] *domain* *domain* *virtual* <*users*>This rule applies to > mail destined for the specified virtual*domain*. This parameter supports > the ‘*’ wi

Re: Virtual domains

2015-03-12 Thread Edgar Pettijohn III
smtpd.conf(5) for [!] domain domain virtual This rule applies to mail destined for the specified virtualdomain. This parameter supports the ‘*’ wildcard, so that a single rule for all sub-domains can be used, for example: accept for domain "*.example.com" \ virtual deliver to mbox The t

Re: Virtual domains

2015-03-12 Thread Gonzalo
I dont want systems users El mar 12, 2015 6:43 PM, "Edgar Pettijohn III" escribió: > > On Mar 11, 2015, at 8:09 PM, Seth wrote: > > > On Wed, 11 Mar 2015 13:11:16 -0700, Gonzalo > wrote: > > > >> Hi Guys, > >> > >> I have this conf on OpenBSD 5.6 > >> > >> table dominios

Re: Virtual domains

2015-03-12 Thread Edgar Pettijohn III
On Mar 11, 2015, at 8:09 PM, Seth wrote: > On Wed, 11 Mar 2015 13:11:16 -0700, Gonzalo wrote: > >> Hi Guys, >> >> I have this conf on OpenBSD 5.6 >> >> table dominios file:/etc/mail/dominios >> table usuarios file:/etc/dovecot/users >> table a

Re: Virtual domains

2015-03-12 Thread Gonzalo
debug: pony: rsae_bn_mod_exp smtp-in: Started TLS on session cdb6415f5a23579f: version=TLSv1/SSLv3, cipher=ECDHE-RSA-AES128-GCM-SHA256, bits=128 smtp-in: Client certificate verification succeeded on session cdb6415f5a23579f debug: smtp: SIZE in MAIL FROM command lookup: check "209.85.217.171" as NE

Re: Virtual domains

2015-03-12 Thread Seth
On Thu, 12 Mar 2015 07:14:11 -0700, Gonzalo wrote: Mmm I have the same output.. El mar 11, 2015 11:31 PM, "Seth" escribió: Offhand I would say this is probably more of Dovecot delivery configuration issue moreso than an OpenSMTPD one. I don't have much experience using or troubleshooting

Re: Virtual domains

2015-03-11 Thread Seth
You might need to include a '${dest}' bit at the end of this smptd.conf accept statement: accept from any for domain virtual deliver to mda "/usr/local/libexec/dovecot/dovecot-lda -f %{sender} -d %{dest}" Found a related LDA accept statement example here: http://www.mail-archive.com/mis

Re: Virtual domains

2015-03-11 Thread Gonzalo
first of all the auth on imap I need to check out the dovecot conf, but still can recive mails from other domains, so the debug is: smtpd -dv debug: init ssl-tree info: loading pki information for foobar.com.ar info: OpenSMTPD 5.4.3 starting debug: bounce warning after 4h debug: using "fs" queue b

Re: Virtual domains

2015-03-11 Thread Seth
On Wed, 11 Mar 2015 13:11:16 -0700, Gonzalo wrote: Hi Guys, I have this conf on OpenBSD 5.6 table dominios file:/etc/mail/dominios table usuarios file:/etc/dovecot/users table aliases db:/etc/mail/aliases.db table spa

Virtual domains

2015-03-11 Thread Gonzalo
Hi Guys, I have this conf on OpenBSD 5.6 table dominios file:/etc/mail/dominios table usuarios file:/etc/dovecot/users table aliases db:/etc/mail/aliases.db table spam file:/etc/mail/spam exp

in virtual domains configuration with relay : PermFails not relayed

2015-01-27 Thread William Mimart
I have an issue in a relay configuration. I have an OpenSMTPD server which authenticate distant users and relaying their mails to an other SMTP server who is in charge to local delivery or external relaying. Below is its configuration : listen on 127.0.0.1 port submission tls-require auth pki

Re: Setting virtual user table for virtual domains.

2014-01-13 Thread Martin Kropfinger
Am 2014-01-13 17:58, schrieb Martin Kropfinger: Am 2014-01-13 17:52, schrieb Martin Kropfinger: [...] ### Virtual Domains Table ### example.com funnydomain.net sillydomain.org ### EOF ### ### Virtual Users ### vuser localuser sissi localuser k

Re: Setting virtual user table for virtual domains.

2014-01-13 Thread Martin Kropfinger
Am 2014-01-13 17:52, schrieb Martin Kropfinger: [...] ### Virtual Domains Table ### example.com funnydomain.net sillydomain.org ### EOF ### ### Virtual Users ### vuser localuser sissi localuser k...@sillydomain.orglocaluser ### EOF ### [...] PS: Funny

Setting virtual user table for virtual domains.

2014-01-13 Thread Martin Kropfinger
Hi there, my smtpd is listening for a handful of domainnames. Those are inside a table-file. Also there are some users, that are virtual, I want to accept mail for. As an example, let's say my FQDN is domain.com and here are my tables: ### Virtual Domains Table ### example.com funnydomai

.forward for virtual domains

2013-12-30 Thread Maurice Janssen
ver, when I create a .forward in ~maurice/ , mail is still delivered to the maildir instead of forwarded to the address in the .forward file. For primary domains, the .forward is used as expected, but not for virtual domains. Is this considered a bug or by design? It's not a big problem for me

Re: Crash with virtual domains

2013-06-18 Thread Zé Loff
On Tue, Jun 18, 2013 at 03:10:03PM +0200, Gilles Chehade wrote: > > Sorry, now I'm confused. Do you mean 'foo => foo' is valid even if there > > is no local user 'foo'? (and I really apologise for all the newbie > > questions). > > > > Nope, I meant that you can define an alternate "user base" th

Re: Crash with virtual domains

2013-06-18 Thread Gilles Chehade
On Tue, Jun 18, 2013 at 12:23:51PM +0100, Z? Loff wrote: > > > > I don't really understand what you mean, because if you map your virtual > > boxes to the 'vmail' user on Postfix, you essentially do: > > > >table users { foo => vmail, goo => vmail } > > > > unless I didn't understand what yo

Re: Crash with virtual domains

2013-06-18 Thread Zé Loff
On Tue, Jun 18, 2013 at 12:48:32PM +0200, Gilles Chehade wrote: > On Tue, Jun 18, 2013 at 11:30:28AM +0100, Z? Loff wrote: > > > > [...] > > > > OK, mapping to a local user worked. I was trying to mimic my postfix > > setup, with a few virtual users/domains (and a few aliases) each with > > its own

Re: Crash with virtual domains

2013-06-18 Thread Gilles Chehade
On Tue, Jun 18, 2013 at 11:30:28AM +0100, Z? Loff wrote: > > [...] > > OK, mapping to a local user worked. I was trying to mimic my postfix > setup, with a few virtual users/domains (and a few aliases) each with > its own maildir. I managed to do this with: > > table users { foo => zeloff, goo =

Re: Crash with virtual domains

2013-06-18 Thread Zé Loff
On Tue, Jun 18, 2013 at 09:36:50AM +0200, Eric Faurot wrote: > On Mon, Jun 17, 2013 at 10:04:20PM +0100, Zi Loff wrote: > > Hi all > > > > I'm running version 5.3.3 on -current OpenBSD and smtpd shutdowns upon > > receiving a mail for a virtual domain recipient (which doesn't get > > delivered). D

Re: Crash with virtual domains

2013-06-18 Thread Eric Faurot
On Mon, Jun 17, 2013 at 10:04:20PM +0100, Zé Loff wrote: > Hi all > > I'm running version 5.3.3 on -current OpenBSD and smtpd shutdowns upon > receiving a mail for a virtual domain recipient (which doesn't get > delivered). Delivery for local users works as it should. > > $ egrep -v "^#|^$" /etc/

Crash with virtual domains

2013-06-17 Thread Zé Loff
Hi all I'm running version 5.3.3 on -current OpenBSD and smtpd shutdowns upon receiving a mail for a virtual domain recipient (which doesn't get delivered). Delivery for local users works as it should. $ egrep -v "^#|^$" /etc/smtpd.conf listen on lo0 table aliases db:/etc/mail/aliases.db table us