On Monday 07 February 2005 23:06, Vasiliev Michael wrote:
> > [EMAIL PROTECTED] solomon]$ tail -8 /etc/postfix/main.cf
> > myhostname = shlomo1.solomon
> > mydestination = $myhostname, localhost.$mydomain
> > alias_database = hash:/etc/postfix/aliases
> > virtual_maps = hash:/etc/postfix/virtual
> > canonical_maps = hash:/etc/postfix/canonical
> > mydomain = solomon
> > masquerade_domains = solomon
> > myorigin = solomon
>
> Look, look! ^^
> myorigin should be set to your hostname (shlomo1) for local mail to go and
> bounce properly. (hence the wrong solomon.solomon full hostname)
Thanks - that solved **most** of the problem - mail is now sent and arrives at
the correct local destination. But I still have 2 problems.
1 - This is not critical, but the sender is [EMAIL PROTECTED], [EMAIL
PROTECTED]
[EMAIL PROTECTED], etc and not @shlomo1.solomon.
2 - Although I can see that mail is now arriving at the proper destination,
only solomon can read his mail. All other users (including root) get the
following when trying to access mail. Notice that, in the example below,
shlomo seems to be trying to access the wrong mail box.
[EMAIL PROTECTED] solomon]$ mail
/var/spool/mail/solomon: Permission denied
[EMAIL PROTECTED] solomon]$
So why is evertone trying to get mail from solomon and not from thier own mail
boxes? As you can see below, they do all have boxes containing mail.
[EMAIL PROTECTED] solomon]$ ls -la /var/spool/mail
total 25
drwxrwsr-x 2 root mail 192 Feb 8 06:01 ./
drwxr-xr-x 28 root root 736 Feb 7 17:04 ../
-rw------- 1 kids mail 422 Feb 8 05:47 kids
-rw-rw---- 1 kuku mail 420 Feb 8 05:44 kuku
-rw------- 1 mail mail 652 Jan 4 20:42 mail
-rw------- 1 postfix mail 3338 Dec 20 18:53 postfix
-rw------- 1 shlomo mail 426 Feb 8 05:37 shlomo
-rw------- 1 solomon mail 1219 Feb 8 06:01 solomon
And permisions are OK too. You can see that shlomo can cat his mail box
[EMAIL PROTECTED] solomon]$ cat /var/spool/mail/shlomo
From [EMAIL PROTECTED] Tue Feb 8 05:37:26 2005
Return-Path: <[EMAIL PROTECTED]>
X-Original-To: shlomo
Delivered-To: [EMAIL PROTECTED]
Received: by shlomo1.solomon (Postfix, from userid 501)
id A2907ADDF; Tue, 8 Feb 2005 05:37:26 +0200 (IST)
To: [EMAIL PROTECTED]
Subject: test
Message-Id: <[EMAIL PROTECTED]>
Date: Tue, 8 Feb 2005 05:37:26 +0200 (IST)
From: [EMAIL PROTECTED] (solomon)
;dflk;dfgkl;s
[EMAIL PROTECTED] solomon]$
--
Shlomo Solomon
http://the-solomons.net
Sent by KMail 1.7.1 (KDE 3.2.3) on LINUX Mandrake 10.1
================================================================To unsubscribe,
send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]