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 3rd April 2016
22decembre 22decembre is offline
Port Guard
 
Join Date: Dec 2014
Posts: 42
Default dead simple smtpd for router

I am finishing a personal router that I will use begining of next week. Everything looks great.

So I would like that the small amount of mail generated by the router may be redirected simply to the main server.

The main server exports users account via yp (so only one auth between the two of them, and accounts are common) and works great since quite a time as mail server. No problem on this side apparently. I simply add a domain to accept mail for : Blackblock (its own system hostname).

On the router side, I made a mail alias table using the usual /etc/mail/aliases file :

Code:
# Basic system aliases -- these MUST be present
MAILER-DAEMON: postmaster
postmaster: root

# General redirections for important pseudo accounts
daemon: root
...
www:    root

root:           root@blackblock
stephane:       stephane@blackblock
And the smtpd :

Code:
listen on lo0
table aliases file:/etc/mail/aliases

#accept for local alias <aliases>
#
# Already tested this one above. Not working. The mail command returns :
# send-mail: command failed: 550 Invalid recipient

# this one does not work either.
# The aliases are not considered, and you cannot set alias in a relay line. 
accept from local relay via smtp://blackblock
So what should I do ? Any idea ?
Reply With Quote
  #2   (View Single Post)  
Old 3rd April 2016
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

I do this for root mail from alll of my OpenBSD machines to a central MTA, with the simple "accept for any relay via smtp://<mta>" that you are using, but I do not set any aliases for the central MTA. The only mail is for root, and it gets aliased to my admin userid on the central MTA.

Try it without your @blackblock alias settings.
Reply With Quote
  #3   (View Single Post)  
Old 3rd April 2016
22decembre 22decembre is offline
Port Guard
 
Join Date: Dec 2014
Posts: 42
Default

I will try that next time.
Reply With Quote
Reply

Tags
mail server

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
DOS is not dead John Other OS 22 30th July 2019 06:20 AM
smtpd relay doesn't use my configured port sag OpenBSD General 4 30th January 2016 04:48 AM
smtpd as a relay bceverly OpenBSD General 13 7th October 2015 04:52 PM
Help with smtpd as a relay rjdelacr OpenBSD General 5 6th October 2015 08:48 PM
Switched over from sendmail(8) to smtpd(8) by default. gpatrick OpenBSD General 0 5th October 2014 03:56 PM


All times are GMT. The time now is 10:38 PM.


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