View previous topic :: View next topic |
Author |
Message |
caefer Apprentice
Joined: 14 Jan 2003 Posts: 170 Location: Hamburg, Germany
|
Posted: Tue Jun 22, 2004 6:35 pm Post subject: complicated issue with /etc/postfix/alias |
|
|
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 |
|
|
saccory Apprentice
Joined: 18 Feb 2004 Posts: 176 Location: Göttingen, Germany
|
Posted: Wed Jun 23, 2004 6:44 am Post subject: |
|
|
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 |
|
|
caefer Apprentice
Joined: 14 Jan 2003 Posts: 170 Location: Hamburg, Germany
|
Posted: Wed Jun 23, 2004 7:08 am Post subject: |
|
|
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 |
|
|
saccory Apprentice
Joined: 18 Feb 2004 Posts: 176 Location: Göttingen, Germany
|
Posted: Wed Jun 23, 2004 7:15 am Post subject: |
|
|
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 |
|
|
caefer Apprentice
Joined: 14 Jan 2003 Posts: 170 Location: Hamburg, Germany
|
Posted: Wed Jun 23, 2004 9:07 am Post subject: |
|
|
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 |
|
|
saccory Apprentice
Joined: 18 Feb 2004 Posts: 176 Location: Göttingen, Germany
|
Posted: Wed Jun 23, 2004 10:56 am Post subject: |
|
|
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 |
|
|
|