postfix cant recieve mails

Discussion in 'Server Operation' started by Donto, Dec 3, 2008.

  1. Donto

    Donto New Member

    hi tried setup my second server on a opensuse11 server followeing the guide perfect server opensuse 11 and installed ispconfig.

    Everything except recievings mails from outside the domain i can send mails inside the domain to difrent users created through ISPconfig and i can send mails to other domains but cant recieve from them. i dont get a mail back stating some error the mail just disapers.

    interesting stuff i found in the log files

    Dec 2 21:13:20 server postfix/smtpd[4220]: warning: support for restriction "check_relay_domains" will be removed from Postfix; use "reject_unauth_destination" instead


    /var/log/mail looks as followed

    Dec 3 15:04:33 server postfix/smtpd[23136]: setting up TLS connection from alea.erlm.siemens.de[217.194.35.70]
    Dec 3 15:04:33 server postfix/smtpd[23136]: Anonymous TLS connection established from alea.erlm.siemens.de[217.194.35.70]: TLSv1 with cipher ADH-AES256-SHA (256/256 bits)
    Dec 3 15:04:33 server postfix/smtpd[23136]: warning: support for restriction "check_relay_domains" will be removed from Postfix; use "reject_unauth_destination" instead
    Dec 3 15:04:33 server postfix/smtpd[23136]: 450869F5011: client=alea.erlm.siemens.de[217.194.35.70]
    Dec 3 15:04:33 server postfix/cleanup[23148]: 450869F5011: message-id=<0C7E898484FF254DB508477B1DF8B7BBE29B84@BDKB1EEA.ww007.siemens.net>
    Dec 3 15:04:33 server postfix/qmgr[7183]: 450869F5011: from=<[email protected]>, size=2145, nrcpt=1 (queue active)
    Dec 3 15:04:33 server postfix/smtpd[23136]: disconnect from alea.erlm.siemens.de[217.194.35.70]
    Dec 3 15:04:33 server procmail[23197]: Suspicious rcfile "/srv/www/web1/user/donto/.procmailrc"
    Dec 3 15:04:33 server postfix/local[23193]: 450869F5011: to=<[email protected]>, orig_to=<[email protected]>, relay=local, delay=0.32, delays=0.18/0.02/0/0.11, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail -f-)
    Dec 3 15:04:33 server postfix/qmgr[7183]: 450869F5011: removed


    /var/log/mail.info looks as followed

    Dec 3 15:04:33 server postfix/smtpd[23136]: setting up TLS connection from alea.erlm.siemens.de[217.194.35.70]
    Dec 3 15:04:33 server postfix/smtpd[23136]: Anonymous TLS connection established from alea.erlm.siemens.de[217.194.35.70]: TLSv1 with cipher ADH-AES256-SHA (256/256 bits)
    Dec 3 15:04:33 server postfix/smtpd[23136]: 450869F5011: client=alea.erlm.siemens.de[217.194.35.70]
    Dec 3 15:04:33 server postfix/cleanup[23148]: 450869F5011: message-id=<0C7E898484FF254DB508477B1DF8B7BBE29B84@BDKB1EEA.ww007.siemens.net>
    Dec 3 15:04:33 server postfix/qmgr[7183]: 450869F5011: from=<[email protected]>, size=2145, nrcpt=1 (queue active)
    Dec 3 15:04:33 server postfix/smtpd[23136]: disconnect from alea.erlm.siemens.de[217.194.35.70]
    Dec 3 15:04:33 server postfix/local[23193]: 450869F5011: to=<[email protected]>, orig_to=<[email protected]>, relay=local, delay=0.32, delays=0.18/0.02/0/0.11, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail -f-)
    Dec 3 15:04:33 server postfix/qmgr[7183]: 450869F5011: removed


    /var/log/mail.err looks as followed

    Dec 1 20:14:12 server imapd: Failed to create cache file: maildirwatch (donto)
    Dec 1 20:14:12 server imapd: Error: Input/output error
    Dec 1 20:14:12 server imapd: Check for proper operation and configuration
    Dec 1 20:14:12 server imapd: of the File Access Monitor daemon (famd).




    if more info is needed please post iv been trying to get the problem solved for two weeks now probely making it more messy then solving any thing
    thx
     
  2. Donto

    Donto New Member

    Figured out it might be some thing about the mails go into mbox

    since a user with nu mail have a file in /var/spool/mail

    on 8 MB but how does i cange it back i have tried doing this but without any diference.

    > postconf -e 'home_mailbox = Maildir/'
    > postconf -e 'mailbox_command ='
    > /etc/init.d/postfix restart

    the file /srv/www/web1/user/donto/.procmailrc loks as followed

    -rw-r----- 1 donto web1 416 Dec 4 14:10 .procmailrc

    how should it look ?
     
  3. falko

    falko Super Moderator Howtoforge Staff

    Please check if the MX records of your domains are pointing to your server:
    Code:
    dig mx yourdomain.com
    What's the output of
    Code:
    netstat -tap
    , and what's in that .procmailrc file?
     
  4. Donto

    Donto New Member

    Actualy thanks to you i figured it out.

    i searching around in this forum for hours the first thing i fund that looked identical to mine problem.

    (a post you solved)

    the right rights to /srv/www/web1/ set it 755

    but after a few hours of reading all posts regarding postfix written by you i tried to chmod al user dirs 755
    /srv/www/web/user/donto/

    and so on and it fixed it.

    but how does i get the mbox files to the mail dir so all the lost mail can be read ??

    looked at mb2md downloaded it but dont know howto use it

    when i try

    ./mb2md -s /var/spool/mail/donto -R -d /srv/www/web1/user/donto/Maildir
    iget
    There should be 2 or 3 args. Read the script for full doco!

    i have been reading the docu but i cant seeme to get it to work what should the sommand look like ??

    thanks falko
     
    Last edited: Dec 5, 2008
  5. falko

    falko Super Moderator Howtoforge Staff

    I think
    Code:
    mb2md -m
    should do - but you must run this as the user who owns the mailbox!
     
  6. Donto

    Donto New Member

    in suse when using ssh as root how does i change user when the users have bben created using ispconfig ??


    edit got it sorted out used this program instead http://sageshome.net/oss/mbox2mdir.php

    it dosnt need you to login as the user.

    with command mbox2mdir /var/spool/mail/donto /srv/www/web1/user/donto/Maildir/cur -t

    meny thaks to all the posts you made in the past falko i got the my buggy configuration sorted.
     
    Last edited: Dec 8, 2008

Share This Page