
4th February 2008, 16:24
|
|
Member
|
|
Join Date: Sep 2007
Posts: 88
Thanks: 6
Thanked 1 Time in 1 Post
|
|
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 16:26.
|

4th February 2008, 17:47
|
|
Member
|
|
Join Date: Sep 2007
Posts: 88
Thanks: 6
Thanked 1 Time in 1 Post
|
|
Would someone ***please*** tell me how to get these logs functioning again?
|

5th February 2008, 10:10
|
|
Member
|
|
Join Date: Sep 2007
Posts: 88
Thanks: 6
Thanked 1 Time in 1 Post
|
|
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?
|

5th February 2008, 11:27
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,903
Thanks: 693
Thanked 4,193 Times in 3,211 Posts
|
|
Please add the line:
plainmortgageadvice.co.uk
at the end of the file /etc/postfix/local-host-names and restart postfix.
|

5th February 2008, 13:50
|
|
Member
|
|
Join Date: Sep 2007
Posts: 88
Thanks: 6
Thanked 1 Time in 1 Post
|
|
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.
|

5th February 2008, 14:15
|
|
Member
|
|
Join Date: Sep 2007
Posts: 88
Thanks: 6
Thanked 1 Time in 1 Post
|
|
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.
|

5th February 2008, 15:52
|
|
Senior Member
|
|
Join Date: Oct 2006
Location: Czech republic, Karlovy Vary
Posts: 156
Thanks: 78
Thanked 10 Times in 10 Posts
|
|
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....
|

5th February 2008, 16:05
|
|
Member
|
|
Join Date: Sep 2007
Posts: 88
Thanks: 6
Thanked 1 Time in 1 Post
|
|
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.
|

5th February 2008, 16:41
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
What's in /etc/postfix/main.cf, /etc/postfix/local-host-names, and /etc/postfix/virtusertable?
|

5th February 2008, 18:06
|
|
Member
|
|
Join Date: Sep 2007
Posts: 88
Thanks: 6
Thanked 1 Time in 1 Post
|
|
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
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 00:05.
|
|
Recent comments
18 hours 17 min ago
1 day 58 min ago
1 day 4 hours ago
1 day 6 hours ago
1 day 14 hours ago
2 days 21 min ago
2 days 1 hour ago
2 days 4 hours ago
2 days 9 hours ago
2 days 9 hours ago