Skip to content

openbsd misc – basic smtpd question

// Thread started by bofh

Hi,
Trying to migrate from my 4.4 to 5.1. Thought I’d go with smtpd. Is
this config good? I want all email for my domain to be delivered on
this box, and for this box to send email out.

wan_if = “em0”
lan_if = “fxp0”

listen on lo0
listen on $lan_if
listen on _wan_if

map “aliases” { source db “/etc/mail/aliases.db” }

accept for local alias aliases deliver to mbox
accept for domain “*.domain1.com” deliver to mbox
accept for domain “*.domain2.org” deliver to mbox
accept from 10.1.1.0/24 relay

I’m also using spamd with default settings as delivered on 5.1, just
uncommenting out the spamd pieces in /etc/pf.conf – there’d be no
impact here right?

Thanks!

Avatar

专业Linux/Unix/Windows系统管理员,开源技术爱好者。对操作系统底层技术,TCP/IP协议栈以及信息系统安全有强烈兴趣。电脑技术之外,则喜欢书法,古典诗词,数码摄影和背包行。

Comments (2) for post “openbsd misc – basic smtpd question”

  • On Sun, Jun 3, 2012 at 8:38 AM, Christopher Zimmermann
    wrote:
    > On Sun, 3 Jun 2012 08:15:56 -0400
    > bofh wrote:
    > Do you want to accept remote mail for your domains? Then you need to
    > add “from all”.
    So, accept from all for domain “*.domain1.com” deliver to mbox

    OK, got it!

    >> accept from 10.1.1.0/24 relay
    > Relay how? Using smarthost? Possibly password protected? Then you need
    > something like this:
    >
    > map “secrets” { source db “/etc/mail/secrets.db” }
    > accept from … for all relay via smarthost tls auth “secrets”

    Still thinking about what I want to do for this – internal network is
    just my house, wpa2 protected wireless. But thanks for the pointer.

  • Christopher Zimmermann:

    You probably want smtpd to deliver your outgoing mail via a smarthost
    of your ISP, because some mailservers reject mail from dynamic IP
    ranges or “private” IP ranges.

Leave a Reply

SidebarComments (2)