PDA

View Full Version : Virtual Users and Domains with Postfix ... (FC5)


remstedt
11th November 2006, 13:31
when I'm going to page 4, and try to initialize the command;
su -m amavis -c 'razor-admin -home=/var/spool/amavisd -create'
it will fail do to; "bash: razor-admin: command not found"
what am I doing wrong here?

falko
12th November 2006, 16:40
What's the output of updatedb
locate razor-admin

and

echo $PATH?

remstedt
13th November 2006, 07:41
* I do not having any "razor-admin" when doing "locate razor-admin"
* echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/opt/jre1.5.0_09/bin:/usr/lib/courier-imap/sbin:/usr/lib/courier-imap/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin


What's the output of updatedb
locate razor-admin

and

echo $PATH?

falko
14th November 2006, 15:30
Then you must install razor as shown on http://www.howtoforge.com/fedora_virtual_postfix_mysql_quota_courier_p4 .

remstedt
15th November 2006, 19:47
falko - do please look at my first line - as I said, already
try that, and without success!

Then you must install razor as shown on http://www.howtoforge.com/fedora_virtual_postfix_mysql_quota_courier_p4 .

falko
16th November 2006, 16:45
You didn't say you tried to install it. did you run this command?
yum install perl-Razor-Agent pyzor

remstedt
16th November 2006, 19:02
Yes! I've run all steps up to page 4 - BUT failed to run those commands as you can see at my first post.

You didn't say you tried to install it. did you run this command?
yum install perl-Razor-Agent pyzor

falko
17th November 2006, 16:06
What's the output of yum install perl-Razor-Agent pyzor?

azel
27th November 2006, 04:51
same problem here, tried to reinstall corresponding package perl-Razor-Agent (and dependency) - no change at all. I even tried different repos (rpmforge). razor-admin ist not avail in that package!

any ideas?

cheers,
azel

//edit: output of ur command - as expected - is: nothing to do.

falko
28th November 2006, 15:53
Did you follow the tutorial as close as possible?

remstedt
4th December 2006, 19:46
Did you follow the tutorial as close as possible?

OK! I've now installed FC6 - and have gone through "step 13 Test Postfix" and here
I do can't telnet to port 25 ...

[root@mail postfix]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
ehlo localhost It's just "hang" there!! And have to "kill" that terminal

[root@mail ~]# lsof -i | grep LISTEN

master 3856 root 11u IPv4 13949 TCP *:smtp (LISTEN)
master 3856 root 98u IPv4 14063 TCP localhost.localdomain:10025 (LISTEN)
smtpd 3866 root 6u IPv4 13949 TCP *:smtp (LISTEN)

[root@mail ~]# netstat -tap
Active Internet connections (servers and established)

tcp 0 0 *:imaps *:* LISTEN 2447/couriertcpd
tcp 0 0 *:pop3s *:* LISTEN 2463/couriertcpd
tcp 0 0 localhost.localdomain:10024 *:* LISTEN 3926/amavisd (maste
tcp 0 0 localhost.localdomain:10025 *:* LISTEN 3856/master
tcp 0 0 *:mysql *:* LISTEN 3566/mysqld
tcp 0 0 *:pop3 *:* LISTEN 2455/couriertcpd
tcp 0 0 *:imap *:* LISTEN 2438/couriertcpd
tcp 0 0 *:http *:* LISTEN 3594/httpd
tcp 0 0 *:ssh *:* LISTEN 2248/sshd
tcp 0 0 *:952 *:* LISTEN 2042/rpc.statd
tcp 0 0 *:smtp *:* LISTEN 3856/master
tcp 0 0 *:https *:* LISTEN 3594/httpd
tcp 17 0 localhost.localdomain:smtp localhost.localdomain:51432 CLOSE_WAIT

falko
5th December 2006, 19:26
Any errors in your mail log? What's the output of hostname and hostname -f? What's in /etc/hosts?

remstedt
5th December 2006, 19:55
Any errors in your mail log? What's the output of hostname and hostname -f? What's in /etc/hosts?

cat /var/log/maillog

postfix/proxymap[3386]: fatal: unsupported dictionary type: mysql
postfix/cleanup[2562]: warning: premature end-of-input on private/proxymap socket while reading input attribute name
postfix/cleanup[2562]: warning: private/proxymap socket: service dict_proxy_open: Success
postfix/master[2527]: warning: process /usr/libexec/postfix/proxymap pid 3386 exit status 1

# hostname
mail.remstedt.org

# hostname -f
mail.remstedt.org

# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.1.100 mail.remstedt.org mail

thanks for your reply,
Glenn.

falko
6th December 2006, 18:44
Please have a look here: http://www.howtoforge.com/forums/showthread.php?t=6908&highlight=fatal%3A+unsupported+dictionary+type%3A+ mysql

remstedt
7th December 2006, 11:34
Please have a look here: http://www.howtoforge.com/forums/showthread.php?t=6908&highlight=fatal%3A+unsupported+dictionary+type%3A+ mysql

OK! After comment out five lines "proxy:mysql" in /etc/postfix/mail.cf I can now telnet localhost 25. But when I'm try telnet localhost 110 with user glenn ...
[root@mail ~]# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
+OK Hello there.
user glenn@remstedt.org
+OK Password required.
pass *****
-ERR chdir remstedt.org/glenn/ failed
Connection closed by foreign host.

Here my telnet localhost 25 ...

[root@mail ~]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 mail.remstedt.org ESMTP Postfix
mail from: glenn@remstedt.org
250 2.1.0 Ok
rcpt to: glenn@remstedt.org
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
subject:10:02
test #4
.
250 2.0.0 Ok: queued as 4165E36813E
quit
221 2.0.0 Bye
Connection closed by foreign host.

And here are the output of "mailq"

[root@mail ~]# mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
4165E36813E 385 Thu Dec 7 10:01:51 glenn@remstedt.org
(host 127.0.0.1[127.0.0.1] said: 450 4.4.1 Can't connect to 127.0.0.1 port 10025, (Bad file descriptor) at (eval 41) line 145, <GEN6> line 29., MTA([127.0.0.1]:10025), id=02667-01 (in reply to end of DATA command))
glenn@remstedt.org

[root@mail ~]# lsof -i | grep LISTEN
portmap 1978 rpc 4u IPv4 5673 TCP *:sunrpc (LISTEN)
rpc.statd 2004 root 7u IPv4 5745 TCP *:914 (LISTEN)
sshd 2210 root 3u IPv4 6215 TCP *:ssh (LISTEN)
mysqld 2337 mysql 10u IPv4 6460 TCP *:mysql (LISTEN)
amavisd 2388 amavis 5u IPv4 6568 TCP localhost.localdomain:10024 (LISTEN)
couriertc 2400 root 3u IPv4 6604 TCP *:imap (LISTEN)
couriertc 2409 root 3u IPv4 6618 TCP *:imaps (LISTEN)
couriertc 2417 root 3u IPv4 6635 TCP *:pop3 (LISTEN)
couriertc 2425 root 3u IPv4 6655 TCP *:pop3s (LISTEN)
master 2486 root 11u IPv4 6837 TCP *:smtp (LISTEN)
master 2486 root 98u IPv4 6951 TCP localhost.localdomain:10025 (LISTEN)
httpd 2521 root 4u IPv4 7016 TCP *:http (LISTEN)
httpd 2521 root 6u IPv4 7018 TCP *:https (LISTEN)
httpd 2605 apache 4u IPv4 7016 TCP *:http (LISTEN)
httpd 2605 apache 6u IPv4 7018 TCP *:https (LISTEN)
httpd 2606 apache 4u IPv4 7016 TCP *:http (LISTEN)
httpd 2606 apache 6u IPv4 7018 TCP *:https (LISTEN)
httpd 2607 apache 4u IPv4 7016 TCP *:http (LISTEN)
httpd 2607 apache 6u IPv4 7018 TCP *:https (LISTEN)
httpd 2608 apache 4u IPv4 7016 TCP *:http (LISTEN)
httpd 2608 apache 6u IPv4 7018 TCP *:https (LISTEN)
httpd 2609 apache 4u IPv4 7016 TCP *:http (LISTEN)
httpd 2609 apache 6u IPv4 7018 TCP *:https (LISTEN)
httpd 2610 apache 4u IPv4 7016 TCP *:http (LISTEN)
httpd 2610 apache 6u IPv4 7018 TCP *:https (LISTEN)
httpd 2611 apache 4u IPv4 7016 TCP *:http (LISTEN)
httpd 2611 apache 6u IPv4 7018 TCP *:https (LISTEN)
httpd 2612 apache 4u IPv4 7016 TCP *:http (LISTEN)
httpd 2612 apache 6u IPv4 7018 TCP *:https (LISTEN)
amavisd 2667 amavis 5u IPv4 6568 TCP localhost.localdomain:10024 (LISTEN)
amavisd 2668 amavis 5u IPv4 6568 TCP localhost.localdomain:10024 (LISTEN)

[root@mail ~]# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:imaps *:* LISTEN 2409/couriertcpd
tcp 0 0 *:pop3s *:* LISTEN 2425/couriertcpd
tcp 0 0 localhost.localdomain:10024 *:* LISTEN 2388/amavisd (maste
tcp 0 0 localhost.localdomain:10025 *:* LISTEN 2486/master
tcp 0 0 *:mysql *:* LISTEN 2337/mysqld
tcp 0 0 *:pop3 *:* LISTEN 2417/couriertcpd
tcp 0 0 *:imap *:* LISTEN 2400/couriertcpd
tcp 0 0 *:sunrpc *:* LISTEN 1978/portmap
tcp 0 0 *:http *:* LISTEN 2521/httpd
tcp 0 0 *:914 *:* LISTEN 2004/rpc.statd
tcp 0 0 *:ssh *:* LISTEN 2210/sshd
tcp 0 0 *:smtp *:* LISTEN 2486/master
tcp 0 0 *:https *:* LISTEN 2521/httpd
tcp 1 0 mail.remstedt.org:53041 fpserv.linux.duke.edu:http CLOSE_WAIT 2669/python
tcp 0 0 localhost.localdomain:36292 localhost.localdomain:mysql ESTABLISHED 2667/amavisd (ch2-a
tcp 0 0 localhost.localdomain:40406 localhost.localdomain:mysql ESTABLISHED 2668/amavisd (ch2-a
tcp 0 0 localhost.localdomain:mysql localhost.localdomain:36292 ESTABLISHED 2337/mysqld
tcp 0 0 localhost.localdomain:mysql localhost.localdomain:40406 ESTABLISHED 2337/mysqld


Thanks for any advice

falko
8th December 2006, 15:47
-ERR chdir remstedt.org/glenn/ failed
Connection closed by foreign host.

You must send an email to that user first. Maildir is created when the first email arrives, afterwards you can log in using POP3.

remstedt
9th December 2006, 10:43
[QUOTE=falko]You must send an email to that user first. Maildir is created when the first email arrives, afterwards you can log in using POP3.[/Q

If I try sending a mail to glenn@remstedt.org by using Evolution from an other mailserver "mail1.comhem.se" I've got an error saying "rcpt to <glenn@remstedt.org> failed: Requested action not taken: mailbox unavailable"

and sending that mail using "telnet localhost 25" has already been tried.

??

falko
10th December 2006, 14:58
Is your server's IP address 83.248.211.103?

remstedt
10th December 2006, 15:53
Is your server's IP address 83.248.211.103?

yes, that's the ip-addr(DHCP) I've got from my ISP, then I do use "DynDNS"-
services to keep my domain connected. Then running a PIX with an internal network
"192.168.1.0"

falko
11th December 2006, 15:18
Ok, that's fine.


If I try sending a mail to glenn@remstedt.org by using Evolution from an other mailserver "mail1.comhem.se" I've got an error saying "rcpt to <glenn@remstedt.org> failed: Requested action not taken: mailbox unavailable"

and sending that mail using "telnet localhost 25" has already been tried.

??
Are you sure that the account glenn@remstedt.org exists on your server?

remstedt
11th December 2006, 15:58
Ok, that's fine.


Are you sure that the account glenn@remstedt.org exists on your server?

As per following the HowTo, page 2, step 7: created the user and group "vmail". and also at page 5, step 14: Populate the Database ... and in there create the user glenn@remstedt.org, that's all I've done about glenn@remstedt.org-account
* When I look into my "User Manager", I do have
User Name: glenn UID 500 GID: glenn
User Name: vmail UID 5000 GID: vmail
User Name: postmaster UID 5001 GID: postmaster
User Name: abuse UID: 5002 GID: abuse

* Those UID and GID, must they be the very same as for "vmail" system UID i.e. users that we added with "useradd" commands to /etc/passwd file?

* What more can I do to make sure about the existing account's?

falko
12th December 2006, 15:18
I think the problem could be that glenn is a system user on your system instead of a virtual user. Maybe that confuses Postfix.

remstedt
12th December 2006, 15:48
I think the problem could be that glenn is a system user on your system instead of a virtual user. Maybe that confuses Postfix.

do you have any suggestions on what to do?

falko
13th December 2006, 14:56
Try deleting the system user glenn.