DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 11th February 2014
wjuq wjuq is offline
New User
 
Join Date: Dec 2013
Posts: 3
Thanked 0 Times in 0 Posts
Default OpenBSD as Mail server, can you check my configuration?

Hi,
first time I write here, so hello to all! :-)

Now the questions:
I'm configuring one OpenBSD machine as a mail server; the server needs to download the emails from a pop3 account, share the emails with 3 different accounts (in the same machine) and make the emails downloadable from other clients in the same lan.
I also want to make possible that the 3 users can send emails to each other from other computers using some alias without the need of external server and instead all the other emails to be sent to an external smtp server.
Here my configurations files:

1) I set up a cron job and use fetchmail to download new emails every 5 minutes, "manuel" is the account where the emails are stored, so I use a system crontab to make possible for the user manuel to store emails in his mbox.

cat /etc/crontab < ---
SHELL=/bin/sh
PATH=/bin:/sbin:/usr/bin:/usr/sbin
#minute hour mday month wday user command
*/5 * * * * manuel /usr/local/bin/fetchmail
---

2) So the settings for fetchmail are (I'll keep the messages until I'll know all work, then I'll remove the "keep" keyword):

cat /home/manuel/.fetchmailrc < ---
poll pop.***.com proto POP3
user "***" with pass "***" is manuel here
keep
---

3) The messages are forwarded to the other 3 accounts, but "manuel" doesn't need to keep anything in his mbox (user[1-3] are 3 registered accounts on the machine):

cat /home/manuel/.forward < ---
user1, user2, user3
---

4) I use OpenSMTP as MTA.

cat /etc/mail/smtpd.conf < ---
listen on all
table aliases db:/etc/mail/aliases.db
accept from any for local alias <aliases> deliver to mbox
accept from any for any relay via smtp://smtp.***.com
---

5) I'll use popa3d for the retrieving of the emails from the other computers in the lan.

Is the configuration correct?
Thank you for your time & bye!
Manuel
Reply With Quote
 

Tags
fetchmail, mail server, open smtp, openbsd 5.4, popa3d

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenSMTPD incoming mail server gpatrick OpenBSD General 2 9th August 2011 10:19 AM
Which release recommended for mail server unixjingleman FreeBSD Installation and Upgrading 1 27th May 2011 05:15 AM
X Server 1.8 with new configuration mechanisms J65nko News 10 11th April 2010 09:26 AM
Best way to check if freebsd server is running a nameserver service/daemon Yuka FreeBSD General 7 6th November 2008 01:26 AM
Mail server questions Zmyrgel OpenBSD General 13 4th July 2008 01:45 PM


All times are GMT. The time now is 08:15 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick