diff options
author | ivan <ivan> | 2005-07-11 12:22:23 +0000 |
---|---|---|
committer | ivan <ivan> | 2005-07-11 12:22:23 +0000 |
commit | 957b67040ae8af463a2564a1fd04fd9b85db542c (patch) | |
tree | f9c68ce9964634023de64d2ca5bda78765259a4a | |
parent | 4710846d49a5f778337c3757bbaeecd803ec8585 (diff) |
fix regex
-rwxr-xr-x | bin/postfix.export | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/postfix.export b/bin/postfix.export index dbb08ceb9..61380da59 100755 --- a/bin/postfix.export +++ b/bin/postfix.export @@ -40,7 +40,7 @@ foreach my $export ( @exports ) { my $srcsvc_acct = $svc_forward->srcsvc_acct; if ( $srcsvc_acct ) { ( $username, $domain ) = ( $srcsvc_acct->username, $srcsvc_acct->domain ); - } elsif ( $svc_forward->src =~ /([^@]*)\@([^@]+)$/ ) { + } elsif ( $svc_forward->src =~ /^([^@]*)\@([^@]+)$/ ) { ( $username, $domain ) = ( $1, $2 ); } else { die "bad svc_forward record? svcnum ". $svc_forward->svcnum. "\n"; |