thanks Mike for the answer. Now i'm moving to the next step. My box is inside LAN and behind a firewall. The firewall has a public IP. I set iptables to forward mail to port 25 and 143 from firewall to my box. I have also setup DNS MX record using the firewall's IP and domain name.
Sending mails work OK but receiving mails NOT OK. I got this in my maillog : PERM_FAILURE: SMTP Error (state 9): 554 <[EMAIL PROTECTED]>: Relay access denied I am a bit blur of Postfix. Can anyone tell me which part of config files should I alter? On 12/22/05, M. J. [Mike] OBrien <[EMAIL PROTECTED]> wrote: > > Hello zamri; > > Without any knowledge of your LAN setup, troubleshooting your LAN mail is > not possible. > > On your DNS question, mail won't be delivered without proper DNS zone. > That > is not true for receiving mail (IMAP or POP) but mail not delivered won't > be > received. > Your LAN DNS Zone must have an MX record for SMTP to work. (If it's all > dynamic (DHCP) then of course it won't work.) > > A precautionary step: If you are truly doing everything from and as > localhost use 127.0.0.1 not "localhost" as the hostname in all configs to > avert a no-DNS problem. > > Your test environment, testing an unknown with an unknown, is somewhat > flawed. > By using a new setup of Squirrelmail you are testing an unknown DBMail > system with an unknown MUA -- you'll go "WebMail Nuts" :o). > > Try using a known MUA like T-Bird or Outlook Express or Mozilla Mail or > whatever. (Did you telnet into your DBMail system to check mail?) > > Squirrelmail is usually more than a five-minute installation. An awesome > application once finished, sometimes it can be a devil to get it > configured > and working the way you want it with the many plugins and customizations > available. Until everything is stabilized it is a plug-in breaking things > or > the core installation or a missing PHP module in the build or something > else. Conclude that you should start with a minimal (basic) installation > and > add plug-ins one by one. (Don't test it against an untested DBMail > installation. ) > > so: > 1) Fix DNS > 2) Use a working MUA for tests and get DBMail working the way you like it. > 3) Then have fun with the Squirrelmail manuals. :o) > > > > best... > Mike > > > > > > > ----- Original Message ----- > From: "zamri" <[EMAIL PROTECTED]> > To: "DBMail mailinglist" <[email protected] > > Sent: Wednesday, December 21, 2005 10:18 PM > Subject: [Dbmail] problem receiving mails > > > hi all, > > I have setup dbmail as instructed in INSTALL.postfix and also have setup > dbmail tables successfully. I use SquirrelMail to access emails as a > frontend. The problem that I'm facing is I can't receive emails. FYI I > want > to test the system in my LAN first. So it won't need to setup any MX > record > for it. Am I right? The hostname and the domain is localhost and > localdomain > respectively. Are there any options that I need to setup for squirrelmail > parts specific to dbmail ? I can;t find one except for the server setting > that I set to others. I set the maillog and it said 550. Do i need to set > local_recipient_maps? > > My system: > Slackware 10.2 > dbmail-2.0.7 (use dbmail-imapd & dbmail-lmtp) > postfix-2.2.7 > SquirrelMail-1.4.5 > > > > -------------------------------------------------------------------------------- > > > > > _______________________________________________ > > Dbmail mailing list > > [email protected] > > https://mailman.fastxs.nl/mailman/listinfo/dbmail > > > > _______________________________________________ > Dbmail mailing list > [email protected] > https://mailman.fastxs.nl/mailman/listinfo/dbmail >
