Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Mar 2010 14:16:34 +0100
From:      "Julian H. Stacey" <jhs@berklix.com>
To:        Paul Wootton <paul@fletchermoorland.co.uk>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: To sendmail or to postfix that is the question? 
Message-ID:  <201003111316.o2BDGYLG047645@fire.js.berklix.net>
In-Reply-To: Your message "Thu, 11 Mar 2010 10:13:21 GMT." <4B98C241.8090400@fletchermoorland.co.uk> 

next in thread | previous in thread | raw e-mail | index | archive | help
> I really wanted to use Sendmail as a friend knows Sendmail fairly well 
> and I have a Sendmail book, but what I am wanting is the ability to have 
> mail for virtual users, ie I might have 4 admin accounts, 
> admin@domain1.com admin@domain2.com admin@domain3.com and 
> admin@domain4.com and want all the accounts to be independent of each 
> other and not necessarily have a real UNIX user account. I know I can 
> create 4 different admin accounts say admin1, admin2, admin3, admin4 and 
> then use the "virtual users" table, but I can see that getting a little 
> messy and from the end user's point they are going to have unusual login 
> names.
> I know I can do this in Postfix, but is it possible in Sendmail?

Yes its possible. I do that with sendmail for a friend's domain I host
Here's an anonymised real operational sample from my server with comment added
   /etc/mail/virtusertable 
	hostmaster@sparedomain.com            hostmaster
	hostmaster@www.sparedomain.com        hostmaster
	#	I take the hostmaster cos hes not competent to.

	friend-local-acc-on-my-host@sparedomain.com     sparedomain-default
	# friend-local-acc-on-my-host@ is redundant as 
	# done by default, but left for clarity.
	#	could also go to secretary-of-friend@anywhere-else.com

	# example@sparedomain.com             some@where_else

	@sparedomain.com                      sparedomain-default
	# this collects all of
	#	friends-new-colleague-he-hasnt-told-me-about@sparedomain.com
	#	random-guess-by-spammer@sparedomain.com

	@www.sparedomain.com                  sparedomain-default
	#	divert any mail re friends web site to the friend.

   /etc/mail/aliases:
	# switchable choice depending if I POP serve the friend or forward.
	sparedomain-default:		friend@some-other-domain.com
	# sparedomain-default:		friend-local-acc-on-my-host

PS I skimmed but didnt really understand Matthew's posting, (not
saying its right or wrong, just didnt grasp it), but I have sendmail
working fine for my @berklix.org & for a friend's @surfacevision.com
So Paul, you can use sendmail for this if you want.

Cheers,
Julian
-- 
Julian Stacey: BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com
Mail plain text not quoted-printable, HTML or Base64 http://www.asciiribbon.org
  Old 20s expire 30 6 2010 http://www.bankofengland.co.uk/banknotes/twentyv/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003111316.o2BDGYLG047645>