Virtual Users and Domains with Postfix ... (FC5)

Discussion in 'HOWTO-Related Questions' started by remstedt, Nov 11, 2006.

  1. remstedt

    remstedt New Member

    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?
     
  2. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    updatedb
    locate razor-admin
    and

    Code:
    echo $PATH
    ?
     
  3. remstedt

    remstedt New Member

    * 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


     
  4. falko

    falko Super Moderator Howtoforge Staff

  5. remstedt

    remstedt New Member

  6. falko

    falko Super Moderator Howtoforge Staff

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

    remstedt New Member

    Yes! I've run all steps up to page 4 - BUT failed to run those commands as you can see at my first post.

     
  8. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    yum install perl-Razor-Agent pyzor
    ?
     
  9. azel

    azel New Member

    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.
     
  10. falko

    falko Super Moderator Howtoforge Staff

    Did you follow the tutorial as close as possible?
     
  11. remstedt

    remstedt New Member

    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
     
  12. falko

    falko Super Moderator Howtoforge Staff

    Any errors in your mail log? What's the output of
    Code:
    hostname
    and
    Code:
    hostname -f
    ? What's in /etc/hosts?
     
  13. remstedt

    remstedt New Member

    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.
     
  14. falko

    falko Super Moderator Howtoforge Staff

  15. remstedt

    remstedt New Member

    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 [email protected]
    +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: [email protected]
    250 2.1.0 Ok
    rcpt to: [email protected]
    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 [email protected]
    (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))
    [email protected]

    [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
     
  16. falko

    falko Super Moderator Howtoforge Staff

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

    remstedt New Member

     
  18. falko

    falko Super Moderator Howtoforge Staff

    Is your server's IP address 83.248.211.103?
     
  19. remstedt

    remstedt New Member

    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"
     
  20. falko

    falko Super Moderator Howtoforge Staff

    Ok, that's fine.

    Are you sure that the account [email protected] exists on your server?
     

Share This Page