LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-22-2022, 12:07 AM   #1
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,078

Rep: Reputation: 153Reputation: 153
Question welcome email doesn't arrive to aliased user


On Slackware64 15 (stable and current) I'm not receiving the welcome message to my aliased user (and maybe some other system mail, not sure yet, some on stable but unsure about current.) It's in /var/spool/mail/root but was sent to something like root@z-mp.slackware.lan, which I didn't choose, but looks like postfix did (i edited it to say root@localhost.) I aliased root to my main username and restarted postfix, still didn't receive it. I stopped postfix, reinstalled sendmail, started it, but it said it was starting postfix! I removed postfix, restarted sendmail, still didn't receive it. Every time I did newaliases first.

Code:
#/etc/mail/aliases
#	@(#)aliases	8.2 (Berkeley) 3/5/94
#
#  Aliases in this file will NOT be expanded in the header from
#  Mail, but WILL be visible over networks or from /bin/mail.
#
#	>>>>>>>>>>	The program "newaliases" must be run after
#	>> NOTE >>	this file is updated for any changes to
#	>>>>>>>>>>	show through to sendmail.
#

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

# General redirections for pseudo accounts.
bin:		root
daemon:		root
games:		root
ingres:		root
named:          root
nobody:		root
system:		root
toor:		root
uucp:		root
www:            root
ftp-bugs:       root

# Well-known aliases.
manager:	root
dumper:		root
webmaster:      root
abuse:		root

# trap decode to catch security attacks
decode:		root

# Put your local aliases here.
administrator:  root
admin:          root
apache:         root
mail:           root
root:           d
/etc/aliases is the same except has one line for postfix (not needed.)

Sendmail used to send you system mail without you having to do any configuration other than adding your alias if you want it. What went wrong here?
        On any Slackware server I use for email, I'll use postfix, but I think sendmail is/was best for PC, at least when it used to not require much/any configuration...
        I'm checking with the Unix-type command-line mail command, re-alpine, mozilla-thunderbird-78.9.1-x86_64-1.

Last edited by dchmelik; 03-22-2022 at 12:32 AM.
 
Old 03-22-2022, 01:43 AM   #2
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,962

Rep: Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573
Quote:
Originally Posted by dchmelik View Post
I'm not receiving the welcome message to my aliased user (and maybe some other system mail, not sure yet, some on stable but unsure about current.) It's in /var/spool/mail/root
As that welcome message is already in the mailbox, aliases can't have any effect on that. The aliases file is considered when delivering new mail. It does not forward old mail, already in the mailbox.

When the first package aaa_base was installed, that welcome message was added to the root mailbox, it was never delivered in your computer using any kind of mail delivery agent.

I guess Patrick has originally sent the message 11 Jan 2022 from root@z-mp.slackware.lan to root@z-mp.slackware.lan using mailx, and included the root mailbox to the directory tree in the aaa_base package. So z-mp.slackware.lan was the hostname of Patrick's computer.

Last edited by Petri Kaukasoina; 03-22-2022 at 02:09 AM.
 
1 members found this post helpful.
Old 03-22-2022, 02:46 AM   #3
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,078

Original Poster
Rep: Reputation: 153Reputation: 153
Originally I thought I wasn't getting any system mail, then updated this topic... but I think I am getting system mail (w/sendmail only.) Yeah, so I'd just have to do alias/newaliases before reboot post-installation, or copy the root mbox to d.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
E-Mail Read Receipt E-Mail Delivery Status E-Mail tracking number. ytd Linux - Software 3 02-14-2009 04:02 AM
can mail command be used to send mail onto global mail servers like yahoo etc dale_chip Linux - Newbie 4 08-12-2008 08:33 AM
with the linux proxi, backend pop3 mail client can not receive mail and send mail rubin823 Linux - Networking 0 12-21-2006 10:06 PM
You have mail in /var/mail/spool (or maybe /var/spool/mail) Jongi SUSE / openSUSE 1 04-04-2006 02:36 AM
mail mail & mail Ammad Linux - Networking 0 09-30-2004 01:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration