Postfix on LAN

Scott J. Henson scotth at csee.wvu.edu
Tue Feb 21 22:12:17 UTC 2006


Henk Koster wrote:

>Now I wonder if I could also use Postfix to send/receive mail between
>users at the various computers on my LAN. I have already tried adding
>those computers to the /etc/postfix/transport file, like so on my desktop
>computer:
>
>laptop       smtp:[192.168.1.65]
>
>where "laptop" is a name in /etc/hosts for its local IP 192.168.1.65. On
>laptop I have added 192.168.1.0/8 to the mynetworks parameter in
>/etc/postfix/main.cf. Any mail sent from my desktop to the laptop is not
>forwarded to the laptop, however, but sits in the mailq forever.
>
>Clearly, I'm missing something here... does anybody have any idea?
>  
>

I'm going to guess that your desktop is trying to deliver mail to 
user at 192.168.1.65 and your laptop is saying that thats not one of the 
destinations it accepts mail for and it disallows relaying. 

If you do a 'postqueue -p' on your desktop it should show you all 
messages that are queued up and the reason they are.  To fix that 
problem you will have to use a name in mydestinations in your main.cf to 
call your laptop.  For instance, if mydestinations contains laptop, you 
should instead have the following for your transport
laptop smtp:[laptop]

Then you will want to have an entry for laptop in /etc/hosts, which I 
think you already have.  The important part is that what is in between 
the brackets in your transport file on desktop matches something in 
mydestinations on your laptop. 

-- 
Scott Henson
LCSEE Systems Staff
WVU MAE Undergraduate
Ubuntu User





More information about the ubuntu-users mailing list