Forgot your password?
typodupeerror
User Journal

FortKnox's Journal: More Email Problems 17

Journal by FortKnox
OK, after some looking, I think I know what's going on with email.

postfix is what's sending email.
sendmail is what's getting email.
procmail is in that mess somewhere.

What I want? Just to recieve emails and either forward them (via my alias file), or accept them and read them in the shell. I don't want to use fetchmail to get email from my other accounts, just my marotti.com email addresses. Outgoing mail works.

I can send emails internally AND outgoing. I just can't recieve emails from the external internet.

Originally, email didn't get in at all (it would time out eventually). Now, I'm sending an email to an account that just recieves email and holds it, and I'm getting a relayed denied message.

This confuses the hell outta me, cause I have no idea why it even thinks I want to relay. I just want to accept the email, not relay it...

Any ideas at all?
This discussion has been archived. No new comments can be posted.

More Email Problems

Comments Filter:
  • by OctaneZ (73357)
    postfix is a replacement for sendmail, actually. the sendmail you are likely running is probably *actually* a link to postfix.
  • When I connect with telnet, I get:

    220 xerxes.marotti.com ESMTP Postfix

    So Postfix is handling incoming traffic. I'd dig up some documentation for Postfix and figure out the settings that prevent relaying and how to tell it which domains to accept.

    I've only used sendmail and qmail so I can't provide much more help than that. For ease of configuration, I highly recommend qmail. Sendmail is a bitch. Or maybe it's just me.

    Don't worry about procmail, it just delivers mail from sendmail/postfix/qmail/whath
    • Sendmail is a bitch.

      Wasn't 'Sendmail' the biggest (read # of pages) O'Reilly book for a long time?
      It's always seemed like a hornet's nest to me.
      • I own the Bat book. At one point and time I was a killer email administrator. Several years later, after not touching Sendmail for a long time, its all gibberish once more.
    • 220 xerxes.marotti.com ESMTP Postfix

      Taking it a couple of step further:

      HELO foo.bar.com
      250 xerxes.marotti.com
      MAIL FROM: foo@bar.com
      250 Ok
      RCPT TO: nospam@marotti.com
      554 : Relay access denied

      My guess is that Postfix isn't configured to treat accept mail for local delivery for marotti.com, thus it's trying to relay it on (to a smart host, perhaps), and is quite rightly denying that. In sendmail, you'd just stick marotti.com in /etc/mail/local-host-names. Don't know how you'd configure Postfix to

  • Relay denied means "I am not the machine that handles mail for that hostname and for security reasons I can't pass it on to the machine that does." -- Apparently you disagree with it on the first half of that statement (up to "and") and will need to convince it of your position.

    Check the docs for how you tell the mailserver for which hostnames it should accept mail.

  • Your mail is not getting past your ISP. Check to see that they allow mail relaying at all (many don't). Frankly why do you want to use your local box as a mail relay? This seems like an unreliable setup. My preference would be to POP off mail from your ISP or use IMAP with a boutique provider like fastmail.fm, who will give you as much drive space as you need (for a price).
    • Frankly why do you want to use your local box as a mail relay?

      Because we can. It's that simple. If your box is hooked up to broadband and has an UPS (dsl "modem" also hooked on it), it is very reliable. I only depend on my ISP for my bandwith, which I love: anything that goes wrong is my fault and hence I can fix it. I expect FortKnox to think in the same lines.

      My parents actually have a server too, and I've been thinking to add MX records so that they can back each other up in case of failure of

      • What I am referring to is the hassle of leaving systems on permanently. I used to do this a few years ago with a BSD box until I realized how expensive it is to keep a modern desktop box running 24x7. In California in the summer this can run $50+ a month, added to which your AC will have to work harder to cool the house as most modern desktops produce inordinate amounts of heat.

        The "home server" is a geek ornament that I believe many grow out of. It really doesn't make much sense. I would much rather have m

        • I understand your point. However I fail to see how an old desktop with a 200W powersupply and a UPS will cost me much more than the fridge, which is also running all the time.
          I don't have an AC, as most Europeans, and I don't need one. Temperature rarely gets over 30 or 35 degrees centigrade. My P166MMX happily shugs along at those temperatures.

          Downtimes due to moving are a non issue. How many times do you move in your life? 4 or 5 times?

          A home server may be a geek ornament, but honestly, it also

          • I understand your point. However I fail to see how an old desktop with a 200W powersupply and a UPS will cost me much more than the fridge, which is also running all the time.

            Your fridge does not run all the time. It comes on when the temperature requires. Your computer runs 24x7x365 until you shut it off, unless it has some cool sleep mode which I do not know of in desktop PC systems.

            A home server may be a geek ornament, but honestly, it also acts as a router and a fileserver in my home.

            A router I can u

            • To interject, IIRC a computer works like a car (I'm not talking about heat, just electricity to the computer). If you let it run, it will generate a constant, but low amount of watts. If you start it up, though, it surges the motherboard with a lot of wattage. So if you start up your machine every single day, you are actually saving money by keeping it on (but, as I mentioned before, I didn't put into account of heat).

              I also don't think people who run home servers appreciate how often they are portscan
            • Even 5 year old desktop systems don't run the CPU in full mode all the time. That's what the NOP operation is for. A typical low end P-I doing Samba fileserver, DHCP, NAT, firewall, mailserver, webserver (including webmail) has a really low load. This is the uptime (and thus load) of my parents server. It serves 5 people, almost constanty and each have two network drives mounted in their profiles:

              [mowgly:/root] # uptime
              9:30PM up 80 days, 18:22, 1 user, load averages: 0.16, 0.15, 0.14

              That server

  • As mentioned by another poster, sendmail or postfix are (competing) MTAs. If you plan to have mail pushed onto your box, you need to have one of them (or some other equivalent) listening on TCP 25. How is your domain set up? Where does the MX record point to? Do you plan to have a full-time mail server on your link?

    Is all the rest of your mail done from the shell on the same machine?
  • I read through the other comments. Probably your postfix doesn't know it is supposed to accept mail for marotti.com.

    Let me copy/paste a few sections that may be relevant for you:

    # INTERNET HOST AND DOMAIN NAMES
    #
    # The myhostname parameter specifies the internet hostname of this
    # mail system. The default is to use the fully-qualified domain name
    # from gethostname(). $myhostname is used as a default value for many
    # other configuration parameters.
    #
    myhostname = mail.foo.com

    Where foo=marotti

    I looked through t

Every successful person has had failures but repeated failure is no guarantee of eventual success.

Working...