DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

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

Reply
 
Thread Tools Display Modes
  #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
  #2   (View Single Post)  
Old 11th February 2014
ibara's Avatar
ibara ibara is offline
Shell Scout
 
Join Date: Jan 2014
Posts: 127
Thanked 0 Times in 0 Posts
Default

Head's up: popa3d was removed from base after 5.4 and will not be available in 5.5 so you may want to set everything up with something else now to make upgrading easier.
__________________
@bcallah on app.net
NYC*BUG
Reply With Quote
  #3   (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

Thank you, I know, but for the moment I just wish to make the server works, so maybe in future I'll look how to fix that too.
Reply With Quote
  #4   (View Single Post)  
Old 12th February 2014
Oko's Avatar
Oko Oko is offline
Fsck Surgeon
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 800
Thanked 36 Times in 32 Posts
Default

@admins
Could you please edit the title of this question? The title is completely misleading and lead me to believe that somebody is trying to configure a genuine mail server for a domain.
Reply With Quote
  #5   (View Single Post)  
Old 12th February 2014
wjuq wjuq is offline
New User
 
Join Date: Dec 2013
Posts: 3
Thanked 0 Times in 0 Posts
Default

Sorry, I didn't mean to write a misleading title but these settings are just what I need to solve the problem I have and really I don't know what else to call all this.
Now I learned this can't be considered a mail server. Thank you.
Reply With Quote
Reply

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 11:57 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