On Sun, 18 Jan 2015 21:51:16 -0800, Benedikt Nießen
<mailingli...@niessen.ch> wrote:
My question is: I have to maintain the domains in the file virtual_domains and the aliases in virtual_aliases. Can I rewrite this configuration to just maintain the virtual_aliases in the form:

a...@example.org                a...@example.com
h...@example.net                a...@example.com

Here's some example config file lines for a virtual user setup delivering emails to a maildir folder that might help you out

/etc/passwd
-----------
vmailuser:*:7200:7200:User &:/var/vmaildir:/usr/sbin/nologin

/usr/local/etc/mail/smtpd.conf
------------------------------
table vdoms             "/usr/local/etc/mail/vdoms"
table vusers            "/usr/local/etc/mail/vusers"

accept from any for domain <vdoms> virtual <vusers> deliver to maildir
"/var/vmaildir/%{dest.domain:lowercase}/%{dest.user:lowercase}/mail/"

/usr/local/etc/mail/vdoms
-------------------------
domain1.tld
domain2.tld


/usr/local/etc/mail/vusers
--------------------------
j...@domain1.tld        vmailuser
john.sm...@domain1.tld  j...@domain.tld
sa...@domain1.tld       vmailuser
i...@domain.tld          n...@domain1.tld,sa...@domain.tld
hor...@domain2.tld      vmailuser
mild...@domain2.tld     vmailuser

--
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org

Reply via email to