LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 01-02-2008, 03:48 AM   #1
noir911
Member
 
Registered: Apr 2004
Posts: 682

Rep: Reputation: Disabled
[OpenBSD 4.2] sendmail setup


I am trying to setup a mail server on my home test box. I bought a domain name and the dynamic IP address I get from my ISP is being updated using DynDNS (so, reverse DNS on mail.domain.com doesn't work)

Anyhow, I copied -

cp /usr/share/sendmail/cf/openbsd-proto.mc /etc/mail/mydomain.mc

and not sure what to change in there. I read the /usr/share/sendmail/README and Googled but most document are outdated or directly deal with this issue.

Could someone shed some light on this?

Thanks.
 
Old 01-02-2008, 08:41 PM   #2
bsdunix
Senior Member
 
Registered: May 2006
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761

Rep: Reputation: 80
What are you trying to accomplish? Receive mail using your DynDNS address? Does your ISP block port 25? Are you trying to send mail via your ISP smarthost?

If your only trying to send mail via your ISP smarthost, what I did for a simple home setup was add:
Code:
MASQUERADE_AS(`ISP.DOMAIN')dnl
FEATURE(`masquerade_envelope')dnl
define(`SMART_HOST',`smtp.isp.domain')dnl
to /usr/share/sendmail/cf/openbsd-localhost.mc file. Then built the .cf file.
Code:
# m4 ../m4/cf.m4 openbsd-localhost.mc > openbsd-localhost.cf
# cp openbsd-localhost.cf /etc/mail/localhost.cf
Then restart the sendmail process or restart the system. There's probably other methods and network tweaks such as having sendmail listen on other than the localhost.

Make sure you edit your /etc/rc.conf.local file to reflect what you called your .cf file in /etc/mail.
Code:
sendmail_flags="-L sm-mta -C/etc/mail/localhost.cf -bd -q30m"

Last edited by bsdunix; 01-03-2008 at 07:50 AM.
 
Old 01-17-2008, 04:06 AM   #3
noir911
Member
 
Registered: Apr 2004
Posts: 682

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bsdunix View Post
What are you trying to accomplish? Receive mail using your DynDNS address? Does your ISP block port 25? Are you trying to send mail via your ISP smarthost?
Thanks for your help on smarthost. My ISP don't block port 25 or any other port.

I actually want to host mail with some OpenBSD hosting company and setup a proper mail server where the IP address would point to mail.mydomain.com for both reverse and forward DNS lookup. I cannot do with dynamic IP from my ISP at home.

I did a Google search with openbsd+mail+hosting and most of them are really expensive. I am on the outlook for something cheaper.

Thanks for any help.

Last edited by noir911; 01-17-2008 at 04:09 AM.
 
Old 01-17-2008, 08:28 AM   #4
bsdunix
Senior Member
 
Registered: May 2006
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761

Rep: Reputation: 80
Quote:
I did a Google search with openbsd+mail+hosting and most of them are really expensive. I am on the outlook for something cheaper.
Most the OpenBSD dedicated hosting companies I looked at start at about $100 USD.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CCD Raid-1 Setup on OpenBSD 4.1 IMNOboist *BSD 1 06-01-2007 03:36 PM
Sendmail 8.12.10 setup brooky9999 Linux - Server 2 09-29-2006 04:01 AM
[OpenBSD 3.7] Wifi setup noir911 *BSD 2 08-16-2005 07:40 PM
OpenBSD 3.6 X setup for users?? halo14 *BSD 6 11-17-2004 04:18 PM
Help with IPNAT setup on OpenBSD 3.4 IMNOboist *BSD 2 12-29-2003 04:47 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 04:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration