exim4 : how to send email to local domain + address ?
Bruno Costacurta
pubmb.bco at pt.lu
Sun Jun 29 22:18:46 UTC 2008
On Sunday 29 June 2008 17:06:20 david wrote:
> On Sunday 29 June 2008 6:38:12 am Bruno Costacurta wrote:
> > On Sunday 29 June 2008 12:20:22 Bruno Costacurta wrote:
> > > Hello,
> > > how to send email to a local mailbox ?
> > >
> > > My config in file email-addresses is :
> > >
> > > bruno: myemail at pt.lu
> > > root: myemail at pt.lu
> > >
> > > which works fine to email to external email address
> > > but not for local, ie. from bruno to root as I received
> > > ----- The following addresses had permanent fatal errors -----
> > > <root at pc34ghz.org>
> > > (reason: 550 Host unknown)
> > >
> > > I suppose I should indicate pc34ghz.org as local domaon not to be send
> > > to my ISP smtp server (which is the reason of errror as my local domain
> > > is of course not known) but how ?
> > >
> > > Thanks.
> > > Bye,
> > > Bruno
> >
> > I forgot to indicate the syntax for test.
> > As user bruno:
> >
> > mail -s "test message" root<ENTER>
> > test<ENTER>
> > ^D
> > Cc:<ENTER>
> >
> > which I expected to receive in the local mailbox 'root' but not sent to
> > my ISP smtp server which is then logically bounced back with 550 host
> > unknow error becasue local domain is unknown.
> >
> > Thanks for any help.
> > Bruno
>
> Sounds like your trying to send mail out through your ISP and back and the
> reason it's bouncing is because your ISP does not know where to send the
> mail. If this is the case, all you should need to do is set up a transport
> in kmail using sendmail and only use it to send local mail.
>
> --
> David M.
It works now.
It seems I missed the parameter 'dc_other_hostnames' in my exim4 config file.
I setup it to dc_other_hostnames='pc34ghz.org' (even if had same value
in /etc/mailname ?!) which is my localdomain
By 'it works now' I mean both following test work (as logged with
user 'bruno'):
mail -s 'test001' root
mail -s 'test002' my_external_email at gmail.com
Note : emails sent to root are forwarded to bruno maildir as defined in
aliases file
Thanks to all for attention.
Bye,
Bruno
More information about the kubuntu-users
mailing list