Hi,

My name is Benedikt, I live in Switzerland and am a big fan of FreeBSD and got 
to know about OpenSMTPD some time ago. As I am currently reworking my private 
infrastructure I want to give it a try as my requires are not that complicated.

The task:
I have a mailbox [email protected] at a mailserver. This mailserver only 
supports one domain, which is example.com. All my other domains (and email 
aliases like [email protected], [email protected]) are handled by another server 
(OpenSMTPD) and forwarded to this one mailbox.

What did I do:
Here is my configuration up to now:

/usr/local/etc/mail/smtpd.conf:

## SSL
#pki ...

## Listen on localhost (ipv4 only)
listen on 127.0.0.1 port 25 hostname mail.example.org

## Mail aliases
table local_aliases             db:/usr/local/etc/mail/aliases.db
table virtual_domains   file:/usr/local/etc/mail/virtual_domains
table virtual_aliases   file:/usr/local/etc/mail/virtual_aliases

## Rules
accept for local alias <local_aliases> deliver to mbox
accept from any for domain <virtual_domains> virtual <virtual_aliases> deliver 
to mbox
accept from local for any relay


This works fine so far. Local services like cron send emails to aliases which 
are (in my case) forwarded to the mailbox mentioned above. Also incoming emails 
are forwarded correctly.

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:

[email protected]                [email protected]
[email protected]                [email protected]

This would make it easier for me.

Thanks for your recommendations.

Have a nice day
Ben.
--
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]

Reply via email to