Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member FeeL's Avatar
    Join Date
    Apr 2004
    Location
    Rio de janeiro
    Posts
    142
    cPanel/Enkompass Access Level

    Reseller Owner

    Unhappy mailboxes not working

    Hi There,

    I have all my mailboxes configured, but all mail comes only to the Catch All account, just like the mailboxes doenst exist!
    If I try to send or recieve mail using one of those, the "passord error" appears.

    What should I do?

    Tnks!
    -----------
    FeeL Buarque
    SysAdmin.

  2. #2
    Member
    Join Date
    Jan 2005
    Posts
    1,880

    Default

    Try sending a message to one of the affected addresses and then check the contents of /var/log/exim_mainlog to look for indications as to where the message was delivered locally and why.

    Is it possible that you have a filter or forwarder set up that could be inteferring? Checking the above log should help clear up this potential issue.

  3. #3
    Member FeeL's Avatar
    Join Date
    Apr 2004
    Location
    Rio de janeiro
    Posts
    142
    cPanel/Enkompass Access Level

    Reseller Owner

    Default nothing

    Nothing appears at the log,
    I think its becose the mail is being delivered at my catch all account.
    no error ocrous

    I've tryed the script below, but I have the
    Could not find domain for specified user at ./restauracontasdemail line 18.
    error


    #!/usr/bin/perl

    # warning: this won't work right if there are addon or parked domains

    use strict;
    use warnings;
    use Cwd;

    die "Supply user as first argument" if !defined $ARGV[0];

    my $usr = $ARGV[0];
    my $ent = `cat /etc/passwd |grep ^$usr:`;
    chomp $ent;
    die 'Invalid user' if !$ent;
    my (undef,undef,$uid,$gid,undef,$hom,$shl) = split /:/, $ent;

    my ($dom) = `cat /etc/trueuserdomains |grep $usr` =~ m/^([^:]*):/;
    die "Could not find domain for specified user" if !defined $dom ||
    !$dom;

    $hom =~ s/\/$//;
    chdir "$hom/etc" or die $!;
    my $dir = getcwd;
    die 'Could not chdir' if $dir ne "$hom/etc";

    open SHD, './shadow' or die $!;
    open PSS, '> ./passwd' or die $!;

    while(<SHD>) {
    my ($u) = $_ =~ m/^([^:]*):/;
    print "Fixing $u..." if defined $ARGV[1] && $ARGV[1];
    print PSS "$u:x:$uid:$gid\::$hom/mail/$dom/$u:$shl\n";
    print "Done\n" if defined $ARGV[1] && $ARGV[1];
    }

    close PSS;
    close SHD;

    print `chown $usr:mail ./passwd`;
    -----------
    FeeL Buarque
    SysAdmin.

  4. #4
    Member
    Join Date
    Jan 2005
    Posts
    1,880

    Default

    Quote Originally Posted by FeeL
    Nothing appears at the log,
    I think its becose the mail is being delivered at my catch all account.
    I wasn't expecting an error to be present in /var/log/exim_mainlog, just a record showing not only delivery of the message but why it was delivered to where it was delivered.

    If mail is getting to your server and then to a specific mailbox, there will be a record of it in /var/log/exim_mainlog. One of the most likely reasons for all mail being delivered to one account and not to specific mailboxes would be filters or forwarders.

    Delivery of all mail will be recorded in /var/log/exim_mainlog and, when filters and forwarders come into play, a hint of such will also be present in the log. Perhaps you could check again?

  5. #5
    Member FeeL's Avatar
    Join Date
    Apr 2004
    Location
    Rio de janeiro
    Posts
    142
    cPanel/Enkompass Access Level

    Reseller Owner

    Default

    Here's the msgs


    [/home/]# tail -n50 /var/log/exim_mainlog | grep visiweb
    2005-12-07 18:08:51 1Ek5ar-0004cg-FV <= <> U=quartogr P=local-bsmtp S=109240 id=E1Ek5ar-0004cc-Bj@guinness.visiweb.com.br
    2005-12-07 18:09:22 1Ek5bO-0004dF-5k <= devassa@qx3.com.br U=visiweb P=local-bsmtp S=3317 id=QX3-SRV01eCXjiGHmNI00002d30@qx3-srv01.dom01.qx3
    2005-12-07 18:09:22 1Ek5bO-0004dF-5k => visiweb <visiweb@guinness.visiweb.com.br> R=localuser T=local_delivery
    2005-12-07 18:09:22 1Ek5bN-0004d6-RM => visiweb <feel@visiweb.com.br> R=sa_localuser T=local_sa_delivery
    -----------
    FeeL Buarque
    SysAdmin.

Similar Threads & Tags
Similar threads

  1. mailboxes
    By angelfire777 in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 07-09-2010, 03:35 PM
  2. squirrelmail without new mailboxes
    By erick_paper in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-25-2006, 04:54 AM
  3. mailboxes
    By zipcon in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 06-08-2005, 12:52 AM
  4. Mailboxes deleted ?!
    By Oriso in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-11-2005, 06:13 PM
  5. Duplicated mailboxes
    By ibs2 in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 11-04-2004, 03:34 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube