seruas
asked on
root email address on OpenBSD 4.1
root email address on OpenBSD 4.1. I have install a new box with Openbsd 4.1 the problem is the default root email address is machinename.domain.com for example but now the email address for root is just domain.com without machine name before, so how I can change this settings?
Thanks a lot,
S
Thanks a lot,
S
The email account root@machinename.domain.co m exists! it is the root users mailbox - login as root and check mail - all the mail sent to root@machinename.domain.co m should be there.
You should probably forward this address to some other address (like root@domain.com).
Add the following line to /etc/aliases file:
root: root@domain.com
And run newaliases script.
You should probably forward this address to some other address (like root@domain.com).
Add the following line to /etc/aliases file:
root: root@domain.com
And run newaliases script.
ASKER
I don't have sendmail.mc and I'm using postfix.
I tried alias as well but doesn't work either.
I have .forward (with my email on root directory) but the system sent the message for root@domain.com instead of root@machine.domain.com this is strange!!!
any ideais?
Thanks,
seruas
I tried alias as well but doesn't work either.
I have .forward (with my email on root directory) but the system sent the message for root@domain.com instead of root@machine.domain.com this is strange!!!
any ideais?
Thanks,
seruas
Please examine /var/log/maillog and post respective entries - sendmail might still be running along with postfix.
ASKER
Here we are:
Aug 22 01:30:19 mail postfix/pickup[812]: EBA84169FBC: uid=0 from=<root>
Aug 22 01:30:20 mail postfix/cleanup[31265]: EBA84169FBC: message-id=<20070822003019 .EBA84169F BC@mail.my domain.com >
Aug 22 01:30:20 mail postfix/qmgr[15552]: EBA84169FBC: from=<root@mydomain.com>, size=892, nrcpt=1 (queue active)
Aug 22 01:30:20 mail postfix/pickup[812]: 11D4C169FBB: uid=0 from=<root>
Aug 22 01:30:20 mail postfix/cleanup[31265]: 11D4C169FBB: message-id=<20070822003020 .11D4C169F BB@mail.my domain.com >
Aug 22 01:30:20 mail postfix/qmgr[15552]: 11D4C169FBB: from=<root@mydomain.com>, size=1936, nrcpt=1 (queue active)
Aug 22 01:30:20 mail postfix/smtp[32530]: EBA84169FBC: to=<root@mydomain.com>, orig_to=<root>, relay=172.16.160.12[172.16 .160.12]:2 5, delay=0.41, delay
s=0.17/0.03/0/0.22, dsn=2.6.0, status=sent (250 2.6.0 <20070822003019.EBA84169FB C@mail.myd omain.com> Queued mail for delivery)
Aug 22 01:30:20 mail postfix/qmgr[15552]: EBA84169FBC: removed
Aug 22 01:30:19 mail postfix/pickup[812]: EBA84169FBC: uid=0 from=<root>
Aug 22 01:30:20 mail postfix/cleanup[31265]: EBA84169FBC: message-id=<20070822003019
Aug 22 01:30:20 mail postfix/qmgr[15552]: EBA84169FBC: from=<root@mydomain.com>, size=892, nrcpt=1 (queue active)
Aug 22 01:30:20 mail postfix/pickup[812]: 11D4C169FBB: uid=0 from=<root>
Aug 22 01:30:20 mail postfix/cleanup[31265]: 11D4C169FBB: message-id=<20070822003020
Aug 22 01:30:20 mail postfix/qmgr[15552]: 11D4C169FBB: from=<root@mydomain.com>, size=1936, nrcpt=1 (queue active)
Aug 22 01:30:20 mail postfix/smtp[32530]: EBA84169FBC: to=<root@mydomain.com>, orig_to=<root>, relay=172.16.160.12[172.16
s=0.17/0.03/0/0.22, dsn=2.6.0, status=sent (250 2.6.0 <20070822003019.EBA84169FB
Aug 22 01:30:20 mail postfix/qmgr[15552]: EBA84169FBC: removed
postfix runs alone, that's great.
Do you get full domain name in mail text?
Do you get full domain name in mail text?
ASKER
Nope.
Then it works fine?
ASKER
no it doesn't because when system send me an email it must root@machinename.domain.co m and whats happen is the system send root@domain.com which is wrong.
I think this is an issue with OPenBSD 4.1 because I've install the same system on OpenBSD 3.8 and 3.9 and it works fine.
Thanks,
Sergio
I think this is an issue with OPenBSD 4.1 because I've install the same system on OpenBSD 3.8 and 3.9 and it works fine.
Thanks,
Sergio
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I have installed Openbsd 3.9 and works fine the email on this version.
Thank you guys for your help.
S
Thank you guys for your help.
S
LOCAL_DOMAIN(`localhost.lo
to
LOCAL_DOMAIN(`machinename.
Than
#cd /etc/mail
#make
Restart the mail service.....