Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 4th February 2008, 17:24
chancer chancer is offline
Member
 
Join Date: Sep 2007
Posts: 88
Thanks: 6
Thanked 1 Time in 1 Post
Default

Thanks, madmucho, but I have shown what the logs are producing. Those messages are repeated over and over, although I have several live, working email accounts on my server. The logs I can find are not recording any of that activity.

I am running Debian Etch and there is no directory called mail, only the files I mentioned above and the gz zip files produced from them every 24 hours, like mail.info.1.gz mail.log.1.gz and so forth.

I can produce emails using telnet, the form on the web site or email clients but if the logs do not record anything, how do I diagnose what is going wrong?

This client has tried setting up the email account on his email client and I can send him emails normally, and he can send emails to me. He does not receive emails from the web form. So far as I can make out, and I have had a more experienced php developer check, too, the form is properly structured to email its inputs to that address. Would it help if I copied the form here? It's not a short one, though.

Last edited by chancer; 4th February 2008 at 17:26.
Reply With Quote
Sponsored Links
  #12  
Old 4th February 2008, 18:47
chancer chancer is offline
Member
 
Join Date: Sep 2007
Posts: 88
Thanks: 6
Thanked 1 Time in 1 Post
Default

Would someone ***please*** tell me how to get these logs functioning again?
Reply With Quote
  #13  
Old 5th February 2008, 11:10
chancer chancer is offline
Member
 
Join Date: Sep 2007
Posts: 88
Thanks: 6
Thanked 1 Time in 1 Post
Default

The logs have started logging again, so I filled in the form to see where it goes and got this from the mail.info log:

Code:
Feb  5 09:01:36 sww postfix/pickup[3855]: 6D93E219FB: uid=33 from=<www-data>
Feb  5 09:01:36 sww postfix/cleanup[8386]: 6D93E219FB: message-id=<20080205090136.6D93E219FB@mydomain.co.uk>
Feb  5 09:01:36 sww postfix/qmgr[22838]: 6D93E219FB: from=<www-data@sww.stopwatchweb.co.uk>, size=571, nrcpt=1 (queue active)
Feb  5 09:01:36 sww postfix/smtp[8388]: 6D93E219FB: to=<formresponse@plainmortgageadvice.co.uk>, relay=none, delay=0.3, delays=0.2/0.05/0.05/0, dsn=5.4.6, status=bounced (mail for plainmortgageadvice.co.uk loops back to myself)
Feb  5 09:01:36 sww postfix/cleanup[8386]: C5532219FC: message-id=<20080205090136.C5532219FC@stopwatchweb.co.uk>
Feb  5 09:01:36 sww postfix/qmgr[22838]: C5532219FC: from=<>, size=2421, nrcpt=1 (queue active)
Feb  5 09:01:36 sww postfix/bounce[8390]: 6D93E219FB: sender non-delivery notification: C5532219FC
Feb  5 09:01:36 sww postfix/qmgr[22838]: 6D93E219FB: removed
Feb  5 09:01:36 sww postfix/local[8391]: warning: maildir access problem for UID/GID=33/33: create maildir file /var/www/Maildir/tmp/1202202096.P8391.sww.vm.bytemark.co.uk: Permission denied
Feb  5 09:01:36 sww postfix/local[8391]: warning: perhaps you need to create the maildirs in advance
Feb  5 09:01:36 sww postfix/local[8391]: C5532219FC: to=<www-data@sww.stopwatchweb.co.uk>, relay=local, delay=0.16, delays=0.06/0.05/0/0.05, dsn=5.2.0, status=bounced (maildir delivery failed: create maildir file /var/www/Maildir/tmp/1202202096.P8391.sww.vm.bytemark.co.uk: Permission denied)
Feb  5 09:01:36 sww postfix/qmgr[22838]: C5532219FC: removed
I understand what permsission denied means, but I don't know how to do anything about it. Any suggestions, please?
Reply With Quote
  #14  
Old 5th February 2008, 12:27
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,769
Thanks: 840
Thanked 5,609 Times in 4,420 Posts
Default

Please add the line:

plainmortgageadvice.co.uk

at the end of the file /etc/postfix/local-host-names and restart postfix.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #15  
Old 5th February 2008, 14:50
chancer chancer is offline
Member
 
Join Date: Sep 2007
Posts: 88
Thanks: 6
Thanked 1 Time in 1 Post
Default

The line was missing, so I added it and restarted Postfix. Filled in the form and the user has still received nothing.

We have tried this using an email address not on the server, so we know the form works and sends email normally.

We have tried sending emails using the user account but just with email clients, not from the web site. That works, too.

It is definitely a problem sending mail from a web site on the server, whether to the user's email client or to a forwarding address.
Reply With Quote
  #16  
Old 5th February 2008, 15:15
chancer chancer is offline
Member
 
Join Date: Sep 2007
Posts: 88
Thanks: 6
Thanked 1 Time in 1 Post
Default

Did some further spade work - the alias is in virtusertable to @www.plainmortgageadvice.co.uk but not without the www. - added it and tried again. Log reports cahnged slightly, looking for a user = alias, rather than user with alias - how the **** does an alias log in!!!!

Code:
Feb  5 13:08:18 sww postfix/cleanup[32644]: 2CE9D21943: message-id=<20080205130818.2CE9D21943@stopwatchweb.co.uk>
Feb  5 13:08:18 sww postfix/qmgr[32620]: 2CE9D21943: from=<www-data@sww.stopwatchweb.co.uk>, size=579, nrcpt=1 (queue active)
Feb  5 13:08:18 sww postfix/local[32646]: 2CE9D21943: to=<formresponse@plainmortgageadvice.co.uk>, relay=local, delay=0.7, delays=0.43/0.1/0/0.17, dsn=5.1.1, status=bounced (unknown user: "formresponse")
Feb  5 13:08:18 sww postfix/cleanup[32644]: AFFC62194B: message-id=<20080205130818.AFFC62194B@stopwatchweb.co.uk>
Feb  5 13:08:18 sww postfix/qmgr[32620]: AFFC62194B: from=<>, size=2365, nrcpt=1 (queue active)
Feb  5 13:08:18 sww postfix/local[32646]: warning: maildir access problem for UID/GID=33/33: create maildir file /var/www/Maildir/tmp/1202216898.P32646.sww.vm.bytemark.co.uk: Permission denied
Feb  5 13:08:18 sww postfix/local[32646]: warning: perhaps you need to create the maildirs in advance
Feb  5 13:08:18 sww postfix/bounce[32648]: 2CE9D21943: sender non-delivery notification: AFFC62194B
Feb  5 13:08:18 sww postfix/qmgr[32620]: 2CE9D21943: removed
Feb  5 13:08:18 sww postfix/local[32646]: AFFC62194B: to=<www-data@sww.stopwatchweb.co.uk>, relay=local, delay=0.16, delays=0.09/0/0/0.07, dsn=5.2.0, status=bounced (maildir delivery failed: create maildir file /var/www/Maildir/tmp/1202216898.P32646.sww.vm.bytemark.co.uk: Permission denied)
Feb  5 13:08:18 sww postfix/qmgr[32620]: AFFC62194B: removed
Can anyone understand this behaviour? Some progress, anyway: at least the domain and alias is now each in its correct right place. Still no email from thesite, though, which is the purpose of the exercise.
Reply With Quote
  #17  
Old 5th February 2008, 16:52
madmucho madmucho is offline
Senior Member
 
Join Date: Oct 2006
Location: Czech republic, Karlovy Vary
Posts: 158
Thanks: 81
Thanked 11 Times in 11 Posts
Send a message via ICQ to madmucho
Default

Uf....as i looking to last post dont know, im not much experienced user if i look at that.

But, if you have not in virtualusertable prefix_user@domain.tld i thing you have not specified default dns for your domain, i solvd similiar problem some day past. Try look at this two images if you have correct dns


And if you have correctly set prefixes....
Reply With Quote
  #18  
Old 5th February 2008, 17:05
chancer chancer is offline
Member
 
Join Date: Sep 2007
Posts: 88
Thanks: 6
Thanked 1 Time in 1 Post
Default

I don't think that's it, madmucho. ISPConfig is geared to work with Bind9 whereas my servers are on Tinydns. So I set DNS to the servers by hand. So long as ISPConfig can then find where to send and listen, it doesn't seem to mind.

Also, every other aspect of mail works. If the MX record settings were wrong on the DNS servers, email would not work at all.

I suspect some kind of authentication or permissions problem here, but I am no expert, either.
Reply With Quote
  #19  
Old 5th February 2008, 17:41
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

What's in /etc/postfix/main.cf, /etc/postfix/local-host-names, and /etc/postfix/virtusertable?
__________________
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
  #20  
Old 5th February 2008, 19:06
chancer chancer is offline
Member
 
Join Date: Sep 2007
Posts: 88
Thanks: 6
Thanked 1 Time in 1 Post
 
Default

In /etc/postfix/main.cf 57 lines of code. I've copied some here, let me know if you are wanting to see anything specific:
Code:
smtpd_use_tls = yes
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
relayhost = 
mailbox_command = 
home_mailbox = Maildir/

virtual_maps = hash:/etc/postfix/virtusertable

mydestination = /etc/postfix/local-host-names
I've added plainmortgageadvice.co.uk below the line in /etc/postfix/local-host-names and formresponse@plainmortgageadvice.co.uk below the line in /etc/postfix/virtusertable, restarting Postfix each time.

/etc/aliases has:
Code:
# See man 5 aliases for format
postmaster:    root
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
client 'can not send email' reinier Server Operation 1 17th April 2007 12:38
Can't retrieve email from client cambo Installation/Configuration 13 23rd November 2006 05:08
Email problem freeborn Installation/Configuration 5 19th August 2006 14:42
got a problem with a email account paulley Server Operation 7 9th July 2006 14:11
Receiving Email and Username Problem dstme General 20 16th November 2005 10:33


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


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