Mail for external User

This is a discussion on Mail for external User within the alt.comp.mail.postfix forums, part of the Mail Servers and Related category; I have a domain bau-recht.ch Localy there are some postfix users like aarau@bau-recht.ch and so ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.postfix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-31-2007
Juerg Schwarz
 
Posts: n/a
Default Mail for external User

I have a domain bau-recht.ch

Localy there are some postfix users like

aarau@bau-recht.ch and so on

The real mailserver is an external server and i get the with fetchmail.

There is another location in another town the use the same domain
bau-recht.ch an the get here mails by outlook.

Now when i have to send som mails to one of these users not in our own
office they can't be sent. I get an error like:

Dec 31 12:18:30 localhost postfix/qmgr[10864]: 3232EE1B1D:
from=<testuser@bau-recht.ch>, size=1824, nrcpt=1 (queue active)
Dec 31 12:18:30 localhost postfix/local[10895]: 3232EE1B1D:
to=<test@bau-recht.ch>, relay=local, delay=0, status=bounced (unknow
n user: "test")

How to tell postfix to send mails without local user to an external mail
host like any other mail like something@bluewin.ch ?

tnx
Reply With Quote
  #2 (permalink)  
Old 01-01-2008
Cameron L. Spitzer
 
Posts: n/a
Default Re: Mail for external User

In article <4778e6d8$0$29602$5402220f@news.sunrise.ch>, Juerg Schwarz wrote:
> I have a domain bau-recht.ch
>
> Localy there are some postfix users like
>
> aarau@bau-recht.ch and so on
>
> The real mailserver is an external server and i get the with fetchmail.
>
> There is another location in another town the use the same domain
> bau-recht.ch an the get here mails by outlook.
>
> Now when i have to send som mails to one of these users not in our own
> office they can't be sent. I get an error like:
>
> Dec 31 12:18:30 localhost postfix/qmgr[10864]: 3232EE1B1D:
> from=<testuser@bau-recht.ch>, size=1824, nrcpt=1 (queue active)
> Dec 31 12:18:30 localhost postfix/local[10895]: 3232EE1B1D:
> to=<test@bau-recht.ch>, relay=local, delay=0, status=bounced (unknow
> n user: "test")
>
> How to tell postfix to send mails without local user to an external mail
> host like any other mail like something@bluewin.ch ?


Create a file /etc/postfix/transport with lines like

testuser@bau-recht.ch smtp:[204.202.241.5]


where that's the IP address of the actual server for testuser.
You are overriding the default delivery method for that address.
The square brackets say that is the actual host, don't try
to look up an MX record.
Compile the file with postmap so you have a transport.db file.
Mention the file in /etc/postfix/main.cf like this

transport_maps = hash:/etc/postfix/transport

Restart Postfix.


Cameron

Reply With Quote
  #3 (permalink)  
Old 01-03-2008
Juerg Schwarz
 
Posts: n/a
Default Re: Mail for external User

I asume my ip Address is the one my external SMTP Server use it? It's
195.186.19.155

(my local mailserver from whitch i will send mail has 192.168.10.50 but
this will also give me back an error (something like "user test" unknown.

But now i get this messages in my log

Jan 3 11:49:48 localhost postfix/qmgr[6287]: C1785E1B1D:
from=<testuser@bau-recht.ch>, size=1823, nrcpt=1 (queue active)
Jan 3 11:49:48 localhost postfix/local[6323]: C1785E1B1D:
to=<test@bau-recht.ch>, relay=local, delay=0, status=bounced (unknown
user: "test")
Jan 3 11:49:48 localhost postfix/cleanup[6320]: D8DA7E1B20:
message-id=<20080103104948.D8DA7E1B20@mail.bau-recht.ch>
Jan 3 11:49:48 localhost postfix/qmgr[6287]: D8DA7E1B20: from=<>,
size=3457, nrcpt=1 (queue active)
Jan 3 11:49:48 localhost postfix/qmgr[6287]: C1785E1B1D: removed
Jan 3 11:49:48 localhost postfix/smtp[6327]: warning:
195.186.19.155[195.186.19.155] offered AUTH option multiple times
Jan 3 11:49:48 localhost postfix/smtp[6327]: D8DA7E1B20:
to=<testuser@bau-recht.ch>, relay=195.186.19.155[195.186.19.155],
delay=0, status=bounced (host 195.186.19.155[195.186.19.155] said: 530
authentication required for mail submission (in reply to MAIL FROM command))
Jan 3 11:49:48 localhost postfix/qmgr[6287]: D8DA7E1B20: removed



>
> Create a file /etc/postfix/transport with lines like
>
> testuser@bau-recht.ch smtp:[204.202.241.5]
>
>
> where that's the IP address of the actual server for testuser.
> You are overriding the default delivery method for that address.
> The square brackets say that is the actual host, don't try
> to look up an MX record.
> Compile the file with postmap so you have a transport.db file.
> Mention the file in /etc/postfix/main.cf like this
>
> transport_maps = hash:/etc/postfix/transport
>
> Restart Postfix.
>
>
> Cameron
>

Reply With Quote
  #4 (permalink)  
Old 01-06-2008
Christian Winter
 
Posts: n/a
Default Re: Mail for external User

Juerg Schwarz schrieb:
> I asume my ip Address is the one my external SMTP Server use it? It's
> 195.186.19.155
>
> (my local mailserver from whitch i will send mail has 192.168.10.50 but
> this will also give me back an error (something like "user test" unknown.
>
> But now i get this messages in my log
>
> Jan 3 11:49:48 localhost postfix/qmgr[6287]: C1785E1B1D:
> from=<testuser@bau-recht.ch>, size=1823, nrcpt=1 (queue active)
> Jan 3 11:49:48 localhost postfix/local[6323]: C1785E1B1D:
> to=<test@bau-recht.ch>, relay=local, delay=0, status=bounced (unknown
> user: "test")


I assume from the log that things should be the other way round,
with testuser@ being the local account and test@ the account
that is accessed directly via Outlook, so your transport should
in fact look like:
test@bau-recht.ch smtp:[195.186.19.155]

> Jan 3 11:49:48 localhost postfix/cleanup[6320]: D8DA7E1B20:
> message-id=<20080103104948.D8DA7E1B20@mail.bau-recht.ch>
> Jan 3 11:49:48 localhost postfix/qmgr[6287]: D8DA7E1B20: from=<>,
> size=3457, nrcpt=1 (queue active)
> Jan 3 11:49:48 localhost postfix/qmgr[6287]: C1785E1B1D: removed
> Jan 3 11:49:48 localhost postfix/smtp[6327]: warning:
> 195.186.19.155[195.186.19.155] offered AUTH option multiple times
> Jan 3 11:49:48 localhost postfix/smtp[6327]: D8DA7E1B20:
> to=<testuser@bau-recht.ch>, relay=195.186.19.155[195.186.19.155],
> delay=0, status=bounced (host 195.186.19.155[195.186.19.155] said: 530
> authentication required for mail submission (in reply to MAIL FROM
> command))
> Jan 3 11:49:48 localhost postfix/qmgr[6287]: D8DA7E1B20: removed


So you need authentication, as bluewin seems to have a
policy that only allowes their own trusted MXs and authenticated
clients to submit mails to this server.

You'll have to configure the postfix SASL client according to
http://www.postfix.org/SASL_README.html#client_sasl
to make things work then.

HTH
-Chris
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:48 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0