summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorivan <ivan>2005-07-11 12:22:23 +0000
committerivan <ivan>2005-07-11 12:22:23 +0000
commit957b67040ae8af463a2564a1fd04fd9b85db542c (patch)
treef9c68ce9964634023de64d2ca5bda78765259a4a /bin
parent4710846d49a5f778337c3757bbaeecd803ec8585 (diff)
fix regex
Diffstat (limited to 'bin')
-rwxr-xr-xbin/postfix.export2
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";