Solved Opensmtpd Installation

Hello everyone,

As I am having a living nightmare setting up Postfix to work with my email provider, so I decided to give OpenSMTPD a go. At the moment I am trying to follow the howto on the calomel.org website...https://calomel.org/opensmtpd.html. On that page it says to update the aliases file located at /usr/local/etc/mail/aliases. On my FreeBSD 10 machine the file doesn't exist at that location. I does however exist in /etc/mail/aliases.

Could you please clarify whether or not I should have an aliases file located at /usr/local/etc/mail/aliases?

Could it be that this is the location for OpenBSD?

Thank you
Fred
 
Re: OpenSMTPD installation

On a default FreeBSD installation, /etc/aliases is a symlink to /etc/mail/aliases. If it isn't on your installation, create it.
 
Re: OpenSMTPD installation

Hi @DutchDaemon

This is what I curently have

ls -la /etc
Code:
lrwxr-xr-x   1 root  wheel         12 Jan 16  2014 aliases -> mail/aliases
Is that correct?
 
Last edited by a moderator:
Re: OpenSMTPD installation

The exact location is set in smtpd.conf:
Code:
## the mail aliases database, created with "newaliases"
#table aliases file:/usr/local/etc/mail/aliases
table aliases db:/usr/local/etc/mail/aliases.db
 
Re: OpenSMTPD installation

Hi @SirDice,

So do I just change
Code:
## the mail aliases database, created with "newaliases"
#table aliases file:/usr/local/etc/mail/aliases
table aliases db:/usr/local/etc/mail/aliases.db
for
Code:
## the mail aliases database, created with "newaliases"
#table aliases file:/etc/mail/aliases
table aliases db:/etc/mail/aliases.db
 
Last edited by a moderator:
Re: OpenSMTPD installation

I think that would work. But you may want to keep the base aliases separate from the OpenSMTPd install. In that case I'd just copy /etc/aliases to /usr/local/etc/mail/aliases and work from there.
 
Hi @SirDice,

If i need to make changes to the /usr/local/etc/mail/aliases... How can I generate the new /usr/local/etc/mail/aliases.db as running newaliases will update /etc/mail/aliases.db.
 
Last edited by a moderator:
The /etc/mail/mailer.conf file "remaps" the newaliases command to OpenSMTPd's version instead of FreeBSD's newaliases(1). I assume it knows how to read smtpd.conf and figure out where the aliases file is stored. The mailer.conf(5) configuration file was created to make it easier to replace the system's own sendmail(8). You can use it to "remap" various components to third party ones.

Note, I've never used OpenSMTPd. I'm just a bit better at reading this kind of documentation and I have a bit of experience with other software. ;)
 
Back
Top