HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   Virtual Users.....: pop3d-ssl: chdir No such file or directory (http://www.howtoforge.com/forums/showthread.php?t=8061)

dinnouti 9th November 2006 20:55

Virtual Users.....: pop3d-ssl: chdir No such file or directory
 
Hi I follow the "Virtual Users And Domains With Postfix, Courier And MySQL (Fedora Core 5)" and I getting the error:

Nov 9 14:48:41 x-apache pop3d-ssl: Connection, ip=[XXXXX]
Nov 9 14:48:41 x-apache pop3d-ssl: chdir XXXX.com/sales/: No such file or directory
Nov 9 14:48:44 x-apache pop3d-ssl: Connection, ip=[XXXXX]
Nov 9 14:48:44 x-apache pop3d-ssl: chdir XXXX.com/sales/: No such file or directory

any guess?

I bet 40% is something I mistype, 35% I just forget to type, 15% I overlooked and 10% is a real error. :-)

Thanks
Alex.

falko 10th November 2006 16:50

Did you send an email to that user before you tried to fetch mails? Maildir is created when the first email for that user arrives.

dinnouti 10th November 2006 17:25

I will send an email and let you know.
Thanks!
Alex.

dinnouti 11th November 2006 22:05

I still have the same problem

I was able to send to the mailbox

# mail
Mail version 8.1 6/6/93. Type ? for help.
"/var/spool/mail/root": 1 message 1 new
>N 1 root@localhost.local Sat Nov 11 15:58 26/1101 "test"
& 1
Message 1:
From root@localhost.localdomain Sat Nov 11 15:58:51 2006
X-Original-To: sales@XXXX.com
Delivered-To: root@XXXX.com
X-Virus-Scanned: amavisd-new at localhost
Date: Sat, 11 Nov 2006 15:58:45 -0500
From: root <root@localhost.localdomain>
To: sales@XXXX.com
Subject: test

test 1 2 3

& q
Saved 1 message in mbox


But when I check the mailbox the mailog shows:

Nov 11 16:00:25 XXXX pop3d-ssl: Connection, ip=[XXXXX]
Nov 11 16:00:25 XXXX pop3d-ssl: chdir XXXXX.com/sales/: No such file or directory


The /home/vmail folder is empty, the permissions seems right

home]# stat vmail
File: `vmail'
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: fd00h/64768d Inode: 3538945 Links: 2
Access: (0700/drwx------) Uid: ( 5000/ vmail) Gid: ( 5000/ vmail)
Access: 2006-11-11 16:08:32.000000000 -0500
Modify: 2006-11-08 20:07:52.000000000 -0500
Change: 2006-11-08 20:07:52.000000000 -0500


Thanks
Alex.

falko 12th November 2006 16:16

Quote:

Originally Posted by dinnouti
# mail
Mail version 8.1 6/6/93. Type ? for help.
"/var/spool/mail/root": 1 message 1 new
>N 1 root@localhost.local Sat Nov 11 15:58 26/1101 "test"
& 1
Message 1:
From root@localhost.localdomain Sat Nov 11 15:58:51 2006
X-Original-To: sales@XXXX.com
Delivered-To: root@XXXX.com
X-Virus-Scanned: amavisd-new at localhost
Date: Sat, 11 Nov 2006 15:58:45 -0500
From: root <root@localhost.localdomain>
To: sales@XXXX.com
Subject: test

test 1 2 3

& q
Saved 1 message in mbox

Your mail to sales has been delivered to root! Did you set up any forwarding rules? Is XXXX.com listed only in mydestination in /etc/postfix/main.cf, or also in the domains table in the MySQL database?

dinnouti 12th November 2006 18:04

It's listed in the MySQL and main.cf (mydestination and myhostname)

Alex.

falko 13th November 2006 16:09

You cannot have a domain in mydestination that is in the domains table and vice versa.
If you want to use the domain for virtual email accounts, list it in the domains table; if you want to use it for "real" email accounts, put it in mydestination.

nl0pat 14th November 2006 23:46

similar problem
 
Quote:

Originally Posted by falko
You cannot have a domain in mydestination that is in the domains table and vice versa.
If you want to use the domain for virtual email accounts, list it in the domains table; if you want to use it for "real" email accounts, put it in mydestination.

To start, I want to apologise for hijacking this thread, but I think I have similar problems.
I keep getting a message in my /var/log/maillog saying:
Code:

Nov 14 23:22:05 aaa postfix/trivial-rewrite[3436]: warning: do not list domain aaa.bbb.com in BOTH mydestination and virtual_mailbox_domains
I tried this:
[root@aaa ~]# postconf -n | grep mydestination
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
and as you can see I have nu mydestiniation set.

Any ideas on what could cause this message then ?

Besides, in the tutorial itself i see:
Quote:

postconf -e 'mydestination = server1.example.com, localhost, localhost.localdomain'
so initially I changed this to
Quote:

postconf -e 'mydestination = aaa.bbb.com, localhost, localhost.localdomain'
I want to remark that my server aaa.bbb.com should be mailserver for the domain aaa.bbb.com and is also named like that. I think this should not be causing my problems, but just wanted to let you know.

falko 15th November 2006 16:55

Quote:

Originally Posted by nl0pat
I tried this:
[root@aaa ~]# postconf -n | grep mydestination
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
and as you can see I have nu mydestiniation set.

There must be a mydestination line in main.cf if you followed the tutorial (unless you deleted it afterwards).
Quote:

Originally Posted by nl0pat
Any ideas on what could cause this message then ?

What's the output of
Code:

postconf -d | grep mydestination
?

nl0pat 16th November 2006 07:22

Output of
Code:

[root@aaa ~]# postconf -d | grep mydestination
mydestination = $myhostname, localhost.$mydomain, localhost

I have tried and tried and I think in my struggling to get it running I have also tried deleting the mydestination and haven't put it back afterwards.
So I've checked in the tutorial once again and indeed found the line where we should set mydestination. So I changed it to what the tut says. My output of postconf -e | grep mydestination now says:
Code:

mydestination = aaa.bbb.com, localhost, localhost.localdomain
What I've just come up with now, is that this doesn't change a thing because in the previous situation with an absent mydestination variable postfix would have taken its defaults, which is $myhostname which is also aaa.bbb.com
After I changed it I restarted postfix.
For testing I delivered a message for this domain and I still get:
Code:

Nov 16 07:07:56 aaa postfix/trivial-rewrite[3081]: warning: do not list domain aaa.bbb.com in BOTH mydestination and virtual_mailbox_domains


All times are GMT +2. The time now is 05:36.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.