Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 3rd December 2008, 16:20
Donto Donto is offline
Junior Member
 
Join Date: Dec 2008
Posts: 7
Thanks: 2
Thanked 0 Times in 0 Posts
Default postfix cant recieve mails

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@BDKB1EE A.ww007.siemens.net>
Dec 3 15:04:33 server postfix/qmgr[7183]: 450869F5011: from=<lo@siemens.com>, 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=<donto@server.o-data.dk>, orig_to=<lo@o-data.dk>, 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@BDKB1EE A.ww007.siemens.net>
Dec 3 15:04:33 server postfix/qmgr[7183]: 450869F5011: from=<lo@siemens.com>, 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=<donto@server.o-data.dk>, orig_to=<lo@o-data.dk>, 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
Reply With Quote
Sponsored Links
  #2  
Old 4th December 2008, 14:43
Donto Donto is offline
Junior Member
 
Join Date: Dec 2008
Posts: 7
Thanks: 2
Thanked 0 Times in 0 Posts
Default

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 ?
Reply With Quote
  #3  
Old 4th December 2008, 23:46
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

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?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #4  
Old 5th December 2008, 08:23
Donto Donto is offline
Junior Member
 
Join Date: Dec 2008
Posts: 7
Thanks: 2
Thanked 0 Times in 0 Posts
Default

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 by Donto; 5th December 2008 at 10:38.
Reply With Quote
  #5  
Old 5th December 2008, 16:27
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

I think
Code:
mb2md -m
should do - but you must run this as the user who owns the mailbox!
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 8th December 2008, 10:44
Donto Donto is offline
Junior Member
 
Join Date: Dec 2008
Posts: 7
Thanks: 2
Thanked 0 Times in 0 Posts
 
Default

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 by Donto; 8th December 2008 at 11:14.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Undelivered Mail Returned to Sender Error202 General 5 7th May 2009 11:14
localhost postfix/master: fatal: bind 127.0.0.1 port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 17:39
CentoS doesn't send the emails vaio1 Installation/Configuration 18 5th November 2008 17:51
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 15:36


All times are GMT +2. The time now is 07:24.


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