[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [solved] postfix and hostname



On 09/06/12 12:57, Tony van der Hoff wrote:
> On 09/06/12 11:45, Camaleón wrote:
>> This was from your log:
>>
>> ***
>> Jun  8 16:54:15 shell postfix/trivial-rewrite[10957]: warning: do not
>> list domain vanderhoff.org in BOTH mydestination and 
>> virtual_mailbox_domains
>> ***
>>
>> It's almsot self-explicative :-)
>>
> Self-explanatory. Almost... The problem is that I haven't a clue as to
> how to fix it. But, given that it's just a warning, I chose not to go
> chasing red herrings in pursuit of the real problem.
> 
>> More info on to configure virtual setups, here:
>>
>> http://www.postfix.org/VIRTUAL_README.html#in_virtual_other
>>
> Yes, I read that, but didn't find the answer there. That is to say, I
> didn't understand what I was reading :( Unfortunately that document
> cross-links so many times that it becomes confusing.
> 
>> And here it comes the fatal error:
>>
>> ***
>> Jun  8 16:54:15 shell pipe[10964]: fatal: pipe_command: execvp
>> /usr/sbin/cyrdeliver: No such file or directory
>> ***
>>
>> This is Cyrus speaking, well not really, it's Postfix that can't contact 
>> Cyrus. As I already mentioned, how your setup looks like in regards to 
>> Cyrus and Dovecot? You can't use both unless you really know what you're 
>> doing. Also, check the "master.cf" file and look for your Cyrus pipe line 
>> and ensure you really have "/usr/sbin/cyrdeliver" in your system.
> 
> Indeed, that's the real problem, I think. You'll appreciate that I don't
> "really know what I'm doing" ;) Although Dovecot is installed, I'll
> accept that I'm not actually using it. Sorry for confusing the issue.
> 
> /usr/sbin/cyrdeliver doesn't exist, and I have so far been unable to
> establish which package supplies it.
> 
> However, whilst I'm prepared to pursue this avenue to fix the problem, I
> have to say that I don't see this error message with the .uk hostname.
> This does not seem logical to me.
> 

Uh, oh,

I did this installation some years ago, and evidently have completely
forgotten what I did. Having just checked what's installed on the
server, I find that neither dovecot, nor cyrus are there, although the
configuration files are, which led me to wrong assumptions. I seem to
remember trying various options at the time, before settling on the
present configuration, which is using courier, so that's why postfix
can't find cyrus.

On that basis, I changed the line "mailbox_transport = cyrus" to
"mailbox_transport = courier" in /etc/postfix/main.cf. That got rid of
the fatal error and allowed mail to be processed. I assume the change in
hostname triggered an alternative delivery method for local recipients,
which is why the misconfiguration wasn't a problem previously.

I then used the hostname "shell.vanderhoff.org" instead of just
"vanderhoff.org", which got rid of the warning.

So, I've learned a bit more, thanks to everyone for their support.

Cheers, Tony
-- 
Tony van der Hoff  | mailto:tony@vanderhoff.org
Ariège, France     |


Reply to: