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!
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.
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.
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.
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.Originally Posted by FeeL
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?
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.