Postfix Problem

Seth Hasani sepheebear at gmail.com
Sun Dec 11 07:47:00 UTC 2005


<quote who="Ashwani Jain" on Sat, Dec 10, 2005 at 04:32:58AM EST>

> Hi
> 
> I am using Ubuntu 5.10 (breezy).  My mail server is configured with a
> ISP.  Now I want to configure Postfix to act as a local mail server for
> my organisation.  For that I have configured it, its sending and
> receiving mails successfully.  Problem I am facing is that

When you say "configured with a ISP" do you mean you are sending and
receiving mail through your ISP servers as "user at isp.com" or are you using
your own personal domain with your machine setup to be primary MX such as
"user at ashwani.com"?

Im assuming your are using the first case "user at isp.com" in which case you
could simply setup postfix to relay non-local mail over to your isp for delivery.
Then setup fetchmail hand mail over to either postifix or procmail as the
local MDA. 

> 1..   when I download mail using fetchmail, fetchmail shows that it has
> downloaded mails from server but that         mail but where it
> downloads mail I don't know, mail does not come into users mail box.

In that case, let's see your fetchmailrc. Add "set syslog" to that file and
have a look at /var/log/mail.log to see more of what's happening. But
generally it should look something like this:

    poll mail.yourisp.com with proto POP3
        user 'ispuser' there with password 'password' is 'localuser' here

Also, if you are handing mail over to postfix, check that
you have a line in /etc/postfix/main.cf with something like 

    mydestination = $myhostname, $mydomain, $myorigin, localhost

That setting tells postfix that it's the final destination for those
domains. Another good setting to look into is "home_mailbox". I have that
setup as:

    home_mailbox = .maildir/

> 2.. <snip>
> Problem is
> when forwarding mail account user send mails to POP account users whose
> account is not on the local mail server using my local mail server as
> SMTP server, it returns error 'this mail account does not exist' and if
> I create a account on local mail server for a POP user, than this SMTP
> delivers mail to local made account instead of forwarding it to ISP mail
> server POP account.  This is the biggest problem I am facing and
> consulted with so many people but no one has idea about its solution.

That looks to me like a mis-configured $mydestination in postfix. Your
machine is acting as the final destination for users at yourisp.org. A lot of
the time I'll see something like the contents of /etc/mailname will have the
value "yourisp.org" and then in main.cf there will be lines like:

    myorigin = /etc/mailname
    mydestination = $myorigin

That has to be changed because you're machine is not a mail server for your
ISP. Im not sure if debconf does that but Ive seen it on occasion and it
causes that kind of problem.

Seth




More information about the ubuntu-users mailing list