Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Receiving System Mail
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
danpixley
n00b
n00b


Joined: 14 Jun 2004
Posts: 66

PostPosted: Mon Jun 14, 2004 2:58 am    Post subject: Receiving System Mail Reply with quote

This is kind of a newbie question, so please bare with me.

I recently installed a bare bones Gentoo system for running apache. I am trying to figure out the details of how to set up inter-system mail. For example, I want root to be able to receive mail messages from various loggers. How do I set this up?

I already have Exim installed, but I am assuming I need to do more because there is still no 'mail' command available (that I know of) that allows me or a process to send mail to users on the system. Also, what kind of configurating do I need to do to allow for inter-system mailing only, and not a full-fledged mail server? Are there any security issues I should be aware of?

Thank you,
Dan
_________________
Unanswered Post Initiative:
https://forums.gentoo.org/viewtopic.php?t=119906

My site:
http://danpixley.wordpress.com
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9538
Location: beyond the rim

PostPosted: Mon Jun 14, 2004 3:07 am    Post subject: Reply with quote

The `mail` command is in the net-mail/mailx package, it's basically just a wrapper for the sendmail binary (which is installed by any email server, not only sendmail).
Back to top
View user's profile Send private message
danpixley
n00b
n00b


Joined: 14 Jun 2004
Posts: 66

PostPosted: Tue Jun 15, 2004 2:09 am    Post subject: Reply with quote

Thanks for the reply. I emerged mailx and sendmail, and unmerged Exim. I can now access the 'mail' command, and it appears to want to send mail, but I do not receive mail. When I type:

root@dpix dpix # mail -s "test" root
sdfsadfsdfsd
Cc: <enter>
<ctrl -d>
root@dpix dpix # mail
No mail for root

I have tried with other users, but the mail does not arrive for them either. /var/log/mail.info contains:

Jun 14 12:04:45 dpix sendmail[11590]: i5EJ4jFw011590: from=root, size=39, class=0, nrcpts=1, msgid=<200406141904.i5EJ4jFw011590@dpix.crapnetwork>, relay=root@localhost
Jun 14 12:04:45 dpix sm-mta[11591]: alias database /etc/mail/aliases.db out of date
Jun 14 12:04:45 dpix sm-mta[11591]: i5EJ4jUq011591: from=<root@dpix.crapnetwork>, size=327, class=0, nrcpts=1, msgid=<200406141904.i5EJ4jFw011590@dpix.crapnetwork>, proto=ESMTP, daemon=MTA, relay=dpix.crapnetwork [127.0.0.1]
Jun 14 12:04:45 dpix sendmail[11590]: i5EJ4jFw011590: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30039, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (i5EJ4jUq011591 Message accepted for delivery)
Jun 14 12:04:45 dpix sm-mta[11592]: alias database /etc/mail/aliases.db out of date
Jun 14 12:04:45 dpix sm-mta[11592]: i5EJ4jUq011591: to=<root@dpix.crapnetwork>, ctladdr=<root@dpix.crapnetwork> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30545, dsn=2.0.0,
stat=Sent

/etc/mail/aliases:

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

# General redirections for pseudo accounts.
adm: root
bin: root
daemon: root
exim: root
lp: root
mail: root
named: root
nobody: root
postfix: root

# Well-known aliases -- these should be filled in!
# root:
# operator:

# Standard RFC2142 aliases
abuse: postmaster
ftp: root
hostmaster: root
news: usenet
noc: root
security: root
usenet: root
uucp: root
webmaster: root
www: webmaster

# trap decode to catch security attacks
# decode: /dev/null

Is there something wrong with my aliases?

Thanks,
Dan
_________________
Unanswered Post Initiative:
https://forums.gentoo.org/viewtopic.php?t=119906

My site:
http://danpixley.wordpress.com
Back to top
View user's profile Send private message
papal_authority
Veteran
Veteran


Joined: 31 Mar 2004
Posts: 1823
Location: Canada

PostPosted: Tue Jun 15, 2004 2:31 am    Post subject: Reply with quote

Quote:
alias database /etc/mail/aliases.db out of date

You should probably run newaliases. What does mailq return?
Back to top
View user's profile Send private message
danpixley
n00b
n00b


Joined: 14 Jun 2004
Posts: 66

PostPosted: Tue Jun 15, 2004 2:38 am    Post subject: Reply with quote

Ran newaliases. Then:

root@dpix log # mail -s "Test" root
mailing root
Cc:
root@dpix log # mailq
/var/spool/mqueue is empty
Total requests: 0
root@dpix log # mail
No mail for dpix

Why does it say 'no mail for dpix' when I am doing this as root?

Thanks,
Dan
_________________
Unanswered Post Initiative:
https://forums.gentoo.org/viewtopic.php?t=119906

My site:
http://danpixley.wordpress.com
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum