I have just installed CentOS 5.1 on my home server and I am trying to set a mail server. I have diligently followed the instructions on the Wiki - How To on the CentOS website (http://wiki.centos.org/HowTos/postfix). However I cannot send internal email (I haven't yet tried externally). Do you have any suggestions on what to check? To test it I used two normail user: giulio and federica. I logged in as federica and sent an email to giulio with the mail programme. Is this correct (i.e. using the mail programme)? There is one thing that I don't quite understand from the instructions. In section 3.1 it's suggested to set mynetworks = 192.168.0.0/24, 127.0.0.0/8 in the /etc/postfix/main.cf file. My home network however is 192.168.69.0 and actually the IP assigned to any computers in the networks start from 192.168.69.20. So I changed mynetworks to 192.168.69.0/24 and also 192.168.69.19/30 (as my server IP address is actully 192.168.69.25). I don't think this is the cause of my problem anyway, because it didn't work even with the value suggested by the Wiki page. Thanks for you help Giulio
"So I changed mynetworks to 192.168.69.0/24 and also 192.168.69.19/30" 192.168.69.19/30 should not be in there. What exactly does it say? This?: mynetworks = 192.168.69.0/24, 192.168.69.19/30 should be mynetworks = 192.168.69.0/24, 127.0.0.0/8 (the /24 assumes you are using 255.255.255.0 as your subnet mask, and then tells postfix to trust mail from machines in the 192.168.69.0-255 range) Looks like you are trying to tell it that your clients start at .20, but that's not something its going to need to know or understand, and is not a legitimate entry anyway. I would think it could be the cause of your problem, if you are logged onto the server (localhost) and using mail to send messages. You've removed the 127.0.0.0/8, which (I don't use postfix, so I could be wrong) would remove localhost from the trusted addresses, -----Original Message----- From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On Behalf Of Giulio Troccoli Sent: Thursday, March 27, 2008 12:04 PM To: centos at centos.org Subject: [CentOS] Installing Postfix/Dovecot I have just installed CentOS 5.1 on my home server and I am trying to set a mail server. I have diligently followed the instructions on the Wiki - How To on the CentOS website (http://wiki.centos.org/HowTos/postfix). However I cannot send internal email (I haven't yet tried externally). Do you have any suggestions on what to check? To test it I used two normail user: giulio and federica. I logged in as federica and sent an email to giulio with the mail programme. Is this correct (i.e. using the mail programme)? There is one thing that I don't quite understand from the instructions. In section 3.1 it's suggested to set mynetworks = 192.168.0.0/24, 127.0.0.0/8 in the /etc/postfix/main.cf file. My home network however is 192.168.69.0 and actually the IP assigned to any computers in the networks start from 192.168.69.20. So I changed mynetworks to 192.168.69.0/24 and also 192.168.69.19/30 (as my server IP address is actully 192.168.69.25). I don't think this is the cause of my problem anyway, because it didn't work even with the value suggested by the Wiki page. Thanks for you help Giulio _______________________________________________ CentOS mailing list CentOS at centos.org http://lists.centos.org/mailman/listinfo/centos
on 3-27-2008 12:04 PM Giulio Troccoli spake the following:> I have just installed CentOS 5.1 on my home server and I am trying to > set a mail server. > > I have diligently followed the instructions on the Wiki - How To on the > CentOS website (http://wiki.centos.org/HowTos/postfix). However I cannot > send internal email (I haven't yet tried externally). > > Do you have any suggestions on what to check? To test it I used two > normail user: giulio and federica. I logged in as federica and sent an > email to giulio with the mail programme. Is this correct (i.e. using the > mail programme)? > > There is one thing that I don't quite understand from the instructions. > In section 3.1 it's suggested to set > > mynetworks = 192.168.0.0/24, 127.0.0.0/8 > > in the /etc/postfix/main.cf file. My home network however is > 192.168.69.0 and actually the IP assigned to any computers in the > networks start from 192.168.69.20. So I changed mynetworks to > 192.168.69.0/24 and also 192.168.69.19/30 (as my server IP address is > actully 192.168.69.25). I don't think this is the cause of my problem > anyway, because it didn't work even with the value suggested by the Wiki > page. >192.168.69.0/24 should be the proper setting here. 192.168.69.19/30 is not a proper network. Are you absolutely sure that you did every step in the howto? I used mail to send a test message and it worked fine ( after I read the man page -- I haven't used mail to send a message for 20 years or more!). There must be other errors in your postfix config. When you start postfix, does it throw any errors in the logs? -- MailScanner is like deodorant... You hope everybody uses it, and you notice quickly if they don't!!!! -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 250 bytes Desc: OpenPGP digital signature URL: <http://lists.centos.org/pipermail/centos/attachments/20080327/a016c0b4/attachment-0001.sig>
On Thursday 27 March 2008 19:04:02 Giulio Troccoli wrote:> I have just installed CentOS 5.1 on my home server and I am trying to > set a mail server. > > I have diligently followed the instructions on the Wiki - How To on the > CentOS website (http://wiki.centos.org/HowTos/postfix). However I cannot > send internal email (I haven't yet tried externally). > > Do you have any suggestions on what to check? To test it I used two > normail user: giulio and federica. I logged in as federica and sent an > email to giulio with the mail programme. Is this correct (i.e. using the > mail programme)? > > There is one thing that I don't quite understand from the instructions. > In section 3.1 it's suggested to set > > mynetworks = 192.168.0.0/24, 127.0.0.0/8 > > in the /etc/postfix/main.cf file. My home network however is > 192.168.69.0 and actually the IP assigned to any computers in the > networks start from 192.168.69.20. So I changed mynetworks to > 192.168.69.0/24 and also 192.168.69.19/30 (as my server IP address is > actully 192.168.69.25). I don't think this is the cause of my problem > anyway, because it didn't work even with the value suggested by the Wiki > page. >No, you are misunderstanding this. Your line needs to be mynetworks = 192.168.69.0/24, 127.0.0.0/8 The /24 denotes a Class C network, which yours is, and the final part is the loopback address. Now for the mail sending. Have you got a file called 'transport' under /etc/postfix? And one called transport.db? This last one is what tells postfix where to send things. The transport file needs lines like lydgate.lan smtp:[192.168.0.40] .lydgate.lan smtp:[192.168.0.40] * smtp:[smtp:mailhost.zen.co.uk] where the first two lines define that anything addressed to anyone at lydgate.lan is local, and should be delivered onto my imap server. The last one sends everything else to my ISP. When they are ready, you just run 'postmap transport' and it creates the database. You also need to make sure that your system knows you want to use postfix.sendmail, instead of just sendmail. HTH Anne -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: <http://lists.centos.org/pipermail/centos/attachments/20080327/9c10c526/attachment-0001.sig>
Scott Silva wrote:> on 3-27-2008 12:04 PM Giulio Troccoli spake the following: >> I have just installed CentOS 5.1 on my home server and I am trying to >> set a mail server. >> >> I have diligently followed the instructions on the Wiki - How To on >> the CentOS website (http://wiki.centos.org/HowTos/postfix). However I >> cannot send internal email (I haven't yet tried externally). >> >> Do you have any suggestions on what to check? To test it I used two >> normail user: giulio and federica. I logged in as federica and sent >> an email to giulio with the mail programme. Is this correct (i.e. >> using the mail programme)? >> >> There is one thing that I don't quite understand from the >> instructions. In section 3.1 it's suggested to set >> >> mynetworks = 192.168.0.0/24, 127.0.0.0/8 >> >> in the /etc/postfix/main.cf file. My home network however is >> 192.168.69.0 and actually the IP assigned to any computers in the >> networks start from 192.168.69.20. So I changed mynetworks to >> 192.168.69.0/24 and also 192.168.69.19/30 (as my server IP address is >> actully 192.168.69.25). I don't think this is the cause of my problem >> anyway, because it didn't work even with the value suggested by the >> Wiki page. >> > 192.168.69.0/24 should be the proper setting here. 192.168.69.19/30 is > not a proper network. Are you absolutely sure that you did every step > in the howto? > > I used mail to send a test message and it worked fine ( after I read > the man page -- I haven't used mail to send a message for 20 years or > more!). > > There must be other errors in your postfix config. > > When you start postfix, does it throw any errors in the logs? > >The 192.168.69.19/30 was just a test after 192.168.0.0/24 and 192.168.19.0/24 both failed (i.e. I could send an internal email). To make clearer this is what I have in my main.cf file mynetworks = 192.168.69.0/24, 127.0.0.0/8 Starting Postfix does not throw any errors. I can download emails using POP3 with postfix and davecot, can't I? I don't have to use IMAP, right? Giulio
Anne Wilson wrote:> On Thursday 27 March 2008 19:04:02 Giulio Troccoli wrote: > > No, you are misunderstanding this. Your line needs to be > > mynetworks = 192.168.69.0/24, 127.0.0.0/8 > > The /24 denotes a Class C network, which yours is, and the final part is the > loopback address. > >Those were just testing when what suggested didn't work. My main.cf now has exactly what you say.> Now for the mail sending. Have you got a file called 'transport' > under /etc/postfix? And one called transport.db? This last one is what > tells postfix where to send things. The transport file needs lines like > > lydgate.lan smtp:[192.168.0.40] > .lydgate.lan smtp:[192.168.0.40] > * smtp:[smtp:mailhost.zen.co.uk] > > where the first two lines define that anything addressed to anyone at lydgate.lan > is local, and should be delivered onto my imap server. The last one sends > everything else to my ISP. > > When they are ready, you just run 'postmap transport' and it creates the > database. > >I didn't know this. I change the transport file and done 'postmap transport'. I have also restarted postfix, just in case, but still no joy. However, are those your settings so that I should have something like troccoli.it smtp:[192.168.69.25] .troccoli.it smtp:[192.168.69.25] * smtp:[smtp:tiscali.co.uk] where 192.168.69.25 is the IP address of my mail server?> You also need to make sure that your system knows you want to use > postfix.sendmail, instead of just sendmail. > >I have previously run system-switch-mail and chose postfix. Giulio> Anne > > ------------------------------------------------------------------------ > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >
Giulio Troccoli wrote:> I have just installed CentOS 5.1 on my home server and I am trying to > set a mail server. > > I have diligently followed the instructions on the Wiki - How To on > the CentOS website (http://wiki.centos.org/HowTos/postfix). However I > cannot send internal email (I haven't yet tried externally). > > Do you have any suggestions on what to check? To test it I used two > normail user: giulio and federica. I logged in as federica and sent an > email to giulio with the mail programme. Is this correct (i.e. using > the mail programme)? > > There is one thing that I don't quite understand from the > instructions. In section 3.1 it's suggested to set > > mynetworks = 192.168.0.0/24, 127.0.0.0/8 > > in the /etc/postfix/main.cf file. My home network however is > 192.168.69.0 and actually the IP assigned to any computers in the > networks start from 192.168.69.20. So I changed mynetworks to > 192.168.69.0/24 and also 192.168.69.19/30 (as my server IP address is > actully 192.168.69.25). I don't think this is the cause of my problem > anyway, because it didn't work even with the value suggested by the > Wiki page. > > Thanks for you help > Giulio >Well, after putting the correct settings in /etc/postfix/main.cf mynetworks = 192.168.69.0/24, 127.0.0.0/8 AND commented out the line #mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp restarted postfix and I can download my email with Thunderbird. I cannot read them on the server with mail but I don't care about that Thanks everybody for your help Giulio