Hi,
I'm trying to build a small mailserver using sendmail MTA.
I want to send and receive mail from my domain : example.net
In my /etc/mail, i have these files configured :
Code:
README genericstable openbsd.mc virtusertable.db
aliases genericstable.db sendmail.cf
aliases.db openbsd-proto.mc virtusertable
my openbsd.mc file (to build sendmail.cf):
Code:
divert(-1)
# ...
divert(0)dnl
VERSIONID(`@(#)openbsd-proto.mc $Revision: 1.11 $')dnl
OSTYPE(openbsd)dnl
Cwexample.net
define(`confPRIVACY_FLAGS', `authwarnings,needmailhelo,noexpn,novrfy,nobodyreturn')dnl
FEATURE(nouucp, `reject')dnl
FEATURE(`virtusertable', `hash -o /etc/mail/virtusertable')dnl
FEATURE(genericstable, `hash -o /etc/mail/genericstable')dnl
DAEMON_OPTIONS(`Family=inet, Address=0.0.0.0, Name=MTA')dnl
MAILER(smtp)dnl
When i log in console with my user "wesley", i can receive mail from
wesley@example.net but when i try to send an email, i have the folling error :
Code:
$ can not chdir(/var/spool/mqueue/): Permission denied
Program mode requires special privileges, e.g., root or TrustedUser.
Therefore, if i use su, and then send an email, it 's ok, i can send email from
wesley@example.net
I need help. Thank you very much.