On 01/27/2011 03:03 PM, Wietse Venema wrote:
> J4K:
>> On 01/26/2011 06:39 PM, Victor Duchovni wrote:
>>> On Wed, Jan 26, 2011 at 09:31:48AM +0100, J4K wrote:
>>>
>>>> # ps auxwww|grep master
>>>> root 1333 0.0 0.0 37160 2416 ? Ss Jan20 0:01
>>>> /usr/lib/postfix/master
>>> If there is only one instance of Postfix running, and it was started 5
>>> days ago, the conclusion is that either the main.cf file was different
>>> 5 days ago, and a reload or restart is required, or that you are looking
>>> at the wrong main.cf file, and this master process and its children
>>> are getting main.cf from somewhere else. You can look at the environment
>>> of the master process and see what "MAIL_CONFIG" is set to, then look
>>> for a main.cf file in that directory that is not newer then the master
>>> process. If main.cf is newer, restart.
>>>
>> I restarted postfix this morning. Just seen it again:
>>
>> Jan 27 14:53:21 logout postfix/trivial-rewrite[15187]: warning: do not
>> list domain klunky.co.uk in BOTH mydestination and virtual_mailbox_domains
>> # ps auxwww|grep master
>> root 13876 0.0 0.0 37160 2404 ? Ss 11:33 0:00
>> /usr/lib/postfix/master
>> root 15207 0.0 0.0 8692 848 pts/1 S+ 14:54 0:00 grep master
> There was no klunky.co.uk in the main.cf:mydestination setting that
> you showed, therefore you were showing the wrong main.cf file.
>
> To find all main.cf files on the system:
>
> # find / -name main.cf -ls
>
> The other possibility is that your helpful up-stream Postfix
> maintainer made some modification to Postfix, thereby breaking it.
>
> Wietse
Hi Wietse,
# find / -name main.cf -ls
262563 8 -rw-r--r-- 1 root root 4771 Jan 25 22:40
/etc/postfix/main.cf
395336 8 -rw-r--r-- 1 root root 4195 Jan 10 09:36
/root/backups/server_config/postfix/main.cf
1189966 28 -rwxr-xr-x 1 root root 26123 Jun 21 2010
/usr/lib/postfix/main.cf
# ls -l /usr/lib/postfix/main.cf
-rwxr-xr-x 1 root root 26123 Jun 21 2010 /usr/lib/postfix/main.cf
root@logout:~/corpus# grep -v ^# /usr/lib/postfix/main.cf
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
data_directory = /var/lib/postfix
unknown_local_recipient_reject_code = 550
mynetworks = 127.0.0.0/8
smtpd_banner = $myhostname ESMTP $mail_name (@@DISTRO@@)
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path =
newaliases_path =
mailq_path =
setgid_group =
html_directory =
manpage_directory =
sample_directory =
readme_directory =
I have no idea what the /usr/lib/postfix/main.cf is there for.
By the way, klunky.co.uk is one of a few virtual domains, although the
server itself is called klunky.co.uk. The above has nothing to do with
my /etc/postfix/main.cf.