Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
complicated issue with /etc/postfix/alias
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
caefer
Apprentice
Apprentice


Joined: 14 Jan 2003
Posts: 170
Location: Hamburg, Germany

PostPosted: Tue Jun 22, 2004 6:35 pm    Post subject: complicated issue with /etc/postfix/alias Reply with quote

hi!

I have here a small server that should poll my and my girlfriends mailaccounts and put the mails in their .maildir. everything is fine exept one thing:

my girlfriend has got an account hername@mydomain.com whereas I happen to own the default pop box on that domain. so all mails to mydomain.com should reach me and only the ones at hername@mydomain.com are hers.

now I want to have my postfix aliasfile to be exactly like that.

I tried:
Code:

heruser:      hername
myuser:       *


now the getting of mail does just fine. but I cannot send anymore mails to hername@mydomain.com since the user is not known to my server...


any ideas?


thanks in advance!
/christian
Back to top
View user's profile Send private message
saccory
Apprentice
Apprentice


Joined: 18 Feb 2004
Posts: 176
Location: Göttingen, Germany

PostPosted: Wed Jun 23, 2004 6:44 am    Post subject: Reply with quote

What prgramm do you use for mail retrieval? With fetchmail you can specify the account to deliver mail to explicit using
Code:
poll SERVERNAME protocol PROTOCOL username NAME password PASSWORD LOCALUSER here


You also may want to take a look at http://www.postfix.org/VIRTUAL_README.html#virtual_alias
Back to top
View user's profile Send private message
caefer
Apprentice
Apprentice


Joined: 14 Jan 2003
Posts: 170
Location: Hamburg, Germany

PostPosted: Wed Jun 23, 2004 7:08 am    Post subject: Reply with quote

yes, I use fetchmail and the delivery is not the problem.
the problem ist, that when I send mail to her, the server replies that it does not know hername as a user and so does not send it..

but I think I fixed it. I added an alias to /etc/mail/aliases
Code:
hermailname:       hersystemname


now I can send mail to her! ;-)


thanks anyway!
/christian
Back to top
View user's profile Send private message
saccory
Apprentice
Apprentice


Joined: 18 Feb 2004
Posts: 176
Location: Göttingen, Germany

PostPosted: Wed Jun 23, 2004 7:15 am    Post subject: Reply with quote

caefer wrote:
the problem ist, that when I send mail to her, the server replies that it does not know hername as a user and so does not send it..


That's why I pointed out, that you can configure fetchmail to use a different local name, than the receiver in the mail. You don't _need_ any aliases at all.
Back to top
View user's profile Send private message
caefer
Apprentice
Apprentice


Joined: 14 Jan 2003
Posts: 170
Location: Hamburg, Germany

PostPosted: Wed Jun 23, 2004 9:07 am    Post subject: Reply with quote

my fetchmail already does poll hermailname@.. in /home/hersystemname/.maildir.

the problem I got occured, when I send mail to hermailname@..


maybe I am missunderstanding things here?

/christian
Back to top
View user's profile Send private message
saccory
Apprentice
Apprentice


Joined: 18 Feb 2004
Posts: 176
Location: Göttingen, Germany

PostPosted: Wed Jun 23, 2004 10:56 am    Post subject: Reply with quote

Or I am. You can _poll_ a mailbox and _deliver_ mail to any user on your system, even if he has a differrent username. Of course you can only _send_ local mail to existing users.
But you already figured your problem out, anyway.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum