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
  #1  
Old 31st July 2006, 18:04
Dew the Fifth Dew the Fifth is offline
Junior Member
 
Join Date: Jul 2006
Location: New York
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Mailbox flooded with Mailsize e-mails

I'm relatively new to these forums, and I want to start by thanking the many people who have suffered the same problems I have and the many people who have helped them. Already I've been able to get my server up and running almost entirely just by reading the posts that are available here. However, as you might have guessed I am still having a few "small" issues.

Starting this morning, postfix has begun mailing me mailsize messages to my catchall email. (webadmin) I have already read several forum threads about the mailsize message so I understand that it is important for tracking purposes, but the HD space being taken up in quite large when these messages are just left in an email box. (not to mention it means they're probably not being processed correctly)

I'd like to start by trying to post the typical items that have been requested with regards to this problem.

Email being received just prior to problem occurring and intermittently during
Code:
This is the Postfix program at host base.gorillawebsolutions.com.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to <postmaster>

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

			The Postfix program

<webadmin@base.gorillawebsolutions.com> (expanded from
    <admispconfig@base.gorillawebsolutions.com>): can't create user output
    file. Command output: procmail: Error while writing to "/var/mail/webadmin"



Reporting-MTA: dns; base.gorillawebsolutions.com
X-Postfix-Queue-ID: ED68E1C05356
X-Postfix-Sender: rfc822; webadmin@base.gorillawebsolutions.com
Arrival-Date: Sun, 30 Jul 2006 15:45:36 -0400 (EDT)

Final-Recipient: rfc822; webadmin@base.gorillawebsolutions.com
Original-Recipient: rfc822; admispconfig@base.gorillawebsolutions.com
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; can't create user output file. Command output:
    procmail: Error while writing to "/var/mail/webadmin"

ls -l /var/mail
Code:
[#####@base mail]$ ls -l
total 14432
-rw------- 1 admispconfig mail        0 Jun  7 13:25 admispconfig
-rw------- 1 aradmin      mail        0 Jul 27 09:40 aradmin
-rw------- 1 linux478     mail        0 Jul 27 09:39 aroscoe
-rw------- 1 Scott        mail      576 Jul 27 13:45 ddcruver
-rw------- 1 Amanda       mail        0 Jul 26 08:55 netadmin
-rw------- 1 root         root    25266 Jun  3 04:02 root
-rw------- 1 sherman      mail      576 Jul 31 07:28 sherman
-rw------- 1 webadmin     root 14716849 Jul 31 10:51 webadmin
-rw------- 1 zamrok       mail      576 Jul 30 12:22 zamrok

Contents of /etc/postfix/local-host-names
Code:
###################################
#
# ISPConfig local-host-names Configuration File
#         Version 1.0
#
###################################
localhost
base.gorillawebsolutions.com
localhost.base.gorillawebsolutions.com
localhost.gorillawebsolutions.com
www.gorillawebsolutions.com
www.GorillaWebSolutions.net
www.aroscoe.com
ns1.gorillawebsolutions.com
GorillaWebSolutions.net
mail.gorillawebsolutions.com
ftp.gorillawebsolutions.com
ftp.gorillawebsolutions.net
ns2.gorillawebsolutions.com
gorillawebsolutions.com
mail.gorillawebsolutions.net
Joe.GorillaWebSolutions.net
aroscoe.com
mail.aroscoe.com
ftp.aroscoe.com
#### MAKE MANUAL ENTRIES BELOW THIS LINE! ####

Contents of /etc/aliases
Code:
#
#  Aliases in this file will NOT be expanded in the header from
#  Mail, but WILL be visible over networks or from /bin/mail.
#
#       >>>>>>>>>>      The program "newaliases" must be run after
#       >> NOTE >>      this file is updated for any changes to
#       >>>>>>>>>>      show through to sendmail.
#

# Basic system aliases -- these MUST be present.
mailer-daemon:  postmaster
postmaster:     root

# General redirections for pseudo accounts.
bin:            root
daemon:         root
adm:            root
lp:             root
sync:           root
shutdown:       root
halt:           root
mail:           root
news:           root
uucp:           root
operator:       root
games:          root
gopher:         root
ftp:            root
nobody:         root
radiusd:        root
nut:            root
dbus:           root
vcsa:           root
canna:          root
wnn:            root
rpm:            root
nscd:           root
pcap:           root
apache:         root
webalizer:      root
dovecot:        root
fax:            root
quagga:         root
radvd:          root
pvm:            root
amanda:         root
privoxy:        root
ident:          root
named:          root
xfs:            root
gdm:            root
mailnull:       root
postgres:       root
sshd:           root
smmsp:          root
postfix:        root
netdump:        root
ldap:           root
squid:          root
ntp:            root
mysql:          root
desktop:        root
rpcuser:        root
rpc:            root
nfsnobody:      root

ingres:         root
system:         root
toor:           root
manager:        root
dumper:         root
abuse:          root

newsadm:        news
newsadmin:      news
usenet:         news
ftpadm:         ftp
ftpadmin:       ftp
ftp-adm:        ftp
ftp-admin:      ftp
www:            webmaster
webmaster:      root
noc:            root
security:       root
hostmaster:     root
info:           postmaster
marketing:      postmaster
sales:          postmaster
support:        postmaster


# trap decode to catch security attacks
decode:         root

# Person who should get root's mail
#root:          marc
Just a bit of the mail log
Code:
Jul 31 11:00:07 base postfix/smtpd[5108]: connect from base.gorillawebsolutions.com[127.0.0.1]
Jul 31 11:00:07 base postfix/smtpd[5254]: connect from base.gorillawebsolutions.com[127.0.0.1]
Jul 31 11:00:07 base postfix/smtpd[5108]: setting up TLS connection from base.gorillawebsolutions.com[127.0.0.1]
Jul 31 11:00:07 base postfix/smtpd[5254]: setting up TLS connection from base.gorillawebsolutions.com[127.0.0.1]
Jul 31 11:00:07 base postfix/smtpd[5108]: TLS connection established from base.gorillawebsolutions.com[127.0.0.1]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
Jul 31 11:00:07 base sendmail[5473]: STARTTLS=client, relay=[127.0.0.1], version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256
Jul 31 11:00:07 base postfix/smtpd[5108]: E7AF91C7BEB5: client=base.gorillawebsolutions.com[127.0.0.1], sasl_sender=webadmin@base.gorillawebsolutions.com
Jul 31 11:00:07 base postfix/smtpd[5254]: TLS connection established from base.gorillawebsolutions.com[127.0.0.1]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
Jul 31 11:00:07 base sendmail[5475]: STARTTLS=client, relay=[127.0.0.1], version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256
Jul 31 11:00:07 base postfix/smtpd[5254]: E91141C85801: client=base.gorillawebsolutions.com[127.0.0.1], sasl_sender=webadmin@base.gorillawebsolutions.com
Jul 31 11:00:07 base postfix/cleanup[4802]: E7AF91C7BEB5: message-id=<200607311500.k6VF070J005473@base.gorillawebsolutions.com>
Jul 31 11:00:07 base postfix/cleanup[4541]: E91141C85801: message-id=<200607311500.k6VF071R005475@base.gorillawebsolutions.com>
Jul 31 11:00:09 base sendmail[5475]: k6VF071R005475: to=admispconfig@localhost, ctladdr=webadmin (10020/10008), delay=00:00:02, xdelay=00:00:02, mailer=relay, pri=30101, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as E91141C85801)
Jul 31 11:00:09 base sendmail[5473]: k6VF070J005473: to=admispconfig@localhost, ctladdr=webadmin (10020/10008), delay=00:00:02, xdelay=00:00:02, mailer=relay, pri=30101, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as E7AF91C7BEB5)
Jul 31 11:00:09 base postfix/smtpd[5254]: disconnect from base.gorillawebsolutions.com[127.0.0.1]
Jul 31 11:00:09 base postfix/smtpd[5108]: disconnect from base.gorillawebsolutions.com[127.0.0.1]
Jul 31 11:00:09 base postfix/local[4592]: 7278B1C3FA1F: to=<webadmin@base.gorillawebsolutions.com>, orig_to=<admispconfig@base.gorillawebsolutions.com>, relay=local, delay=19516, status=sent (delivered to command: /usr/bin/procmail -f-)
Jul 31 11:00:09 base postfix/local[4380]: 319081C65114: to=<webadmin@base.gorillawebsolutions.com>, orig_to=<admispconfig@base.gorillawebsolutions.com>, relay=local, delay=32882, status=sent (delivered to command: /usr/bin/procmail -f-)
Jul 31 11:00:09 base postfix/qmgr[20077]: 319081C65114: removed
Jul 31 11:00:09 base postfix/qmgr[20077]: 7278B1C3FA1F: removed
Jul 31 11:00:09 base postfix/qmgr[20077]: 631491C8596B: from=<webadmin@base.gorillawebsolutions.com>, size=791, nrcpt=1 (queue active)

Last edited by Dew the Fifth; 31st July 2006 at 18:10.
Reply With Quote
Sponsored Links
  #2  
Old 1st August 2006, 08:48
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,788
Thanks: 840
Thanked 5,612 Times in 4,423 Posts
Default

Your problem is that you used your servers main domain to create a website in ISPConfig:

http://www.howtoforge.com/faq/index....light=catchall
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 1st August 2006, 14:17
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

Did you create an email alias admispconfig for the webadmin account? If so, please remove it!
__________________
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 1st August 2006, 17:20
Dew the Fifth Dew the Fifth is offline
Junior Member
 
Join Date: Jul 2006
Location: New York
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you Till, you were right. My email catch all belongs to the same domain as my server itself and is therefore creating the loop.

In an attempt to rectify the situation, I removed the catchall setting from webadmin. However, webadmin continued to recieve all of the mailsize e-mails. I was required to remove webadmin, and create a new user with a different name in order to rectify the problem. I assume this is because even though I removed the catchall from webadmin he remained aliased in some way to adminispconfig. However I can not find this alias.

If somebody could help me find this alias I would really appriciate it. If it helps, then acessing spamfilter settings for any of my users will now change their email from whatever I have it set to, to webadmin.

Thank you. For everything.

--Duane


Problem Solving so far
Quote:
Originally Posted by till
Your problem is that you used your servers main domain to create a website in ISPConfig:

http://www.howtoforge.com/faq/index....light=catchall
I just read the link you gave me

Quote:
Please check if the domain of the users that receives all emails is the same as the domain $mydomain in /etc/postfix/main.cf. If this is the case, change $mydomain and run

postfix reload

on the shell.

You should never enter a domain that is used for a virtual site on the server as $mydomain in /etc/postfix/main.cf!

Last update: 2005-12-20 12:28
Author: Till
and I went in to check the main.cf

Quote:
Originally Posted by main.cf

# INTERNET HOST AND DOMAIN NAMES
#
# The myhostname parameter specifies the internet hostname of this
# mail system. The default is to use the fully-qualified domain name
# from gethostname(). $myhostname is used as a default value for many
# other configuration parameters.
#
#myhostname = host.domain.tld
#myhostname = virtual.domain.tld

# The mydomain parameter specifies the local internet domain name.
# The default is to use $myhostname minus the first component.
# $mydomain is used as a default value for many other configuration
# parameters.
#
#mydomain = domain.tld
Which as you can see has mydomain commented out. Reading the comments, I assume this means that it is using $myhostname minus the first component as $mydomain. However, myhostname is also commented out and is therefore using gethostname as its default value.

With this in mind, I wrote a simple C program to generate the results of the gethostname function.
Code:
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
int main()
{
        char name[255];
        gethostname(name,255);
        printf("%s",name);
        return 1;
}
This program reveals that the hostname of my system is base.gorillawebsolutions.com which indeed makes mydomain=gorillawebsolutions.com which is of course the domain name used for my catchall "webadmin"

This program reveals that the hostname of my system is base.gorillawebsolutions.com which indeed makes mydomain=gorillawebsolutions.com which is of course the domain name used for my catchall "webadmin"
Reply With Quote
  #5  
Old 1st August 2006, 19:46
Dew the Fifth Dew the Fifth is offline
Junior Member
 
Join Date: Jul 2006
Location: New York
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

On second thought, I'm not ok. Even though I don't have a mailbox filling up with junk mail anymore, I still have a mail log getting filled with failed mail delivery messages...if anybody can help me figure out how to remove this allias I would really appriciate it. Thank
Reply With Quote
  #6  
Old 2nd August 2006, 10:49
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,788
Thanks: 840
Thanked 5,612 Times in 4,423 Posts
Default

Please post an excerpt of the mail.log file.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 14th August 2006, 16:24
Dew the Fifth Dew the Fifth is offline
Junior Member
 
Join Date: Jul 2006
Location: New York
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm very sorry, I thought I replied to this again, but I must not have. My problem was fixed the next day after posting. I'm not sure what fixed it, but postfix crashed in the middle of the night and when I brought it back up it stopped trying to send the mailsize e-mails. Mabey it just needed time to empty its queue, or mabey something happened with the config files when it crashed, but either way it started working again. Thanks again for all the help guys.

--Dew
Reply With Quote
  #8  
Old 24th August 2006, 21:25
Rasputin Rasputin is offline
Junior Member
 
Join Date: Aug 2006
Location: Germany
Posts: 12
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till
Your problem is that you used your servers main domain to create a website in ISPConfig:

http://www.howtoforge.com/faq/index....light=catchall
If I try to visit the given link I get this error message:

Access denied
You are not authorized to access this page.


So what?
Reply With Quote
  #9  
Old 25th August 2006, 10:11
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,788
Thanks: 840
Thanked 5,612 Times in 4,423 Posts
Default

Quote:
Originally Posted by Rasputin
If I try to visit the given link I get this error message:

Access denied
You are not authorized to access this page.


So what?
The page has moved, the new URL is:

http://www.howtoforge.com/faq/9_33_en.html
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #10  
Old 31st August 2006, 19:14
phamels phamels is offline
Member
 
Join Date: Aug 2005
Location: Belgium
Posts: 63
Thanks: 4
Thanked 5 Times in 5 Posts
 
Default Same kind of problem here ...

It seems I'm having a same kind of problem.
All of a sudden, some users started complaining about mail not arriving in their mailbox and being bounced.

Log file entry:
-------------
Aug 31 02:34:26 gconnect postfix/local[23824]: 34380ABEE1: to=<webxx_user@domain>, orig_to=<alias@domain>, relay=local, delay=2, status=bounced (can't create user output file. Command output: procmail: Error while writing to "/var/mail/webxx_user" )

Some mails seem to arrive, some seem to bounce...

This happend all of a sudden, nothing really changed, except i upgraded to the latest ISPConfig verison :P

Lil' help ?

Thx !
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
How to send mails using php mail function outside domain pankaj Technical 1 19th December 2005 23:09
MailSize Loop? themachine Installation/Configuration 16 19th December 2005 12:07
How to retrive mails from 2nd server dstme Server Operation 3 1st December 2005 19:28
Lost arrived mails ManuelW Installation/Configuration 1 21st October 2005 01:21
Reroute spam to different mailbox? farao Installation/Configuration 5 28th September 2005 15:52


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


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