How to retrieve email? (Postfix / Courier)

Discussion in 'General' started by Merritt, Feb 23, 2009.

  1. Merritt

    Merritt New Member

    Well, I recently followed this how-to:
    The Perfect Server - Debian Lenny (Debian 5.0) [ISPConfig 2]

    First thing is first: Everything seems to be going beautifully, and I'd like to throw a big thank-you to falko for it. I am running my own site on my home server!

    I have one question right now: In the How-to I installed Postfix & Courier for email. In ISPConfig I enabled maildir, and I believe I have correctly setup an email addy. I don't know if I'm too tired or what, but I am at this point: what now? I want to start handing out this email addy to people so they can contact me, so how will I get this? A pop client? What would the config for POP be? Did the web interface for Courier get installed? :)

    I've managed to work my way through everything else, and everything else is working, this is, I believe, the last piece! Thanks in advance for any insights!
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

  3. Merritt

    Merritt New Member

    I had followed the First Steps guide, however I neglected to follow the webmail part of it. :) My bad. I've now installed RoundCube webmail, and can access it fine. However I think I have a snag - I don't believe any mail can be delivered. I was having issues figuring out how to setup DNS properly, on my server & with my domain provider, and in asking their help they just pointed my domain to my server's IP, but left the DNS alone.

    I am going to assume here that the DNS has to be configured properly for the mail functions to work. If so, can anyone provide some insight into how to configure this properly? Google searching has got me tearing my hair out trying to understand it all. I'll play out how things are set currently:

    Server: Server1
    Domain (SOA): linuxottawa.ca
    IP Address: 69.196.165.85

    Admin Email: root@localhost
    Nameserver 1: lenny.linuxottawa.ca
    Nameserver 2: lenny.linuxottawa.ca

    Refresh: 28800
    Retry: 7200
    Expire: 604800
    TTL: 86400

    A Record: blank

    IP-Address: 192.168.1.152 Hostname: www
    CNAME: blank
    MX: blank
    Mailserver: lenny.linuxottawa.ca
    SPF: blank
    Hostname: linuxottawa.ca


    My domain provider gives an option to change DNS for the domain, and no options for A Record, MX, etc. They require 2 DNS entries (which I feel may cause a problem, having only 1 DNS server running, correct me if I am wrong.)

    DNS is the one part of my setup that I truly feel I've hit a wall with, get a headache now thinking about it. Any advice on this would be greatly appreciated!
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    There are two tutorials available here at howtoforge that explain the dns configuration with howtoforge. If you search for godaddy or schlund in the ste search, you will find them. They should work for your provider as well.
     
  5. Merritt

    Merritt New Member

    Thanks again till,

    I *believe* my server is configured properly. I followed the guide for schlund instead of godaddy, since I only have 1 public IP and 1 server. Right now I seem to be having an issue with my domain provider. I had to pay an extra $10/yr fee to get access to the advanced config for the domain, and I thought I has setup my dns to work properly (ns1.linuxottawa.ca), however it is not. I opened a help ticket with them, and got a reply, and now my head hurts again. I'd like your opinion on how to proceed.

    My email to my domain provider:

    Their response:

    Advice, please?
     
  6. falko

    falko Super Moderator ISPConfig Developer

    This is what you need because you want to host linuxottawa.ca on ns1.linuxottawa.ca.

    Your registrar will create glue record for you: http://en.wikipedia.org/wiki/Domain_Name_System#Circular_dependencies_and_glue_records
     
  7. reason8

    reason8 New Member

    I am having problems receiving email as well to the ISP email accounts. They send fine and in fact, receiving was working a few days ago but eveything just stopped. I dont know how to track the problem down. Can someone help?
     
  8. falko

    falko Super Moderator ISPConfig Developer

    How do you mean that? Email accounts on the servers of your ISP, or email accounts on your ISPConfig server?
     
  9. reason8

    reason8 New Member

    Email on ISPConfig. I can send from ISPConfig but I can not receive anything.
     
  10. falko

    falko Super Moderator ISPConfig Developer

    Is there anything in the mail log when you send a mail to the ISPConfig server? Also, please check if the MX records of your domains are pointing to the correct server.
     
  11. reason8

    reason8 New Member

    In the mail logs I see an entries like:

    Apr 2 20:11:28 isp postfix/smtpd[24132]: warning: support for restriction "check_relay_domains" will be removed from Postfix; use "reject_unauth_destination" instead

    THis is the weirded thing. Everything else looks like it is working from what I can tell, but I am not a expert linux/mail server administrator. More of the intermediate type.

    MX records are correct.
     
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    Thats ok, you can ignore it. It just says that thus setting will be removed in a future version of postfix and not that this setting does not work properly in the version that you installed.
     
  13. reason8

    reason8 New Member

    I also see this:

    Apr 2 18:00:57 isp postfix/local[22175]: warning: alias database loop for administrator
    Apr 2 18:00:57 isp postfix/qmgr[6419]: 41A8098366: removed
    Apr 2 18:00:57 isp postfix/bounce[22174]: 41A8098366: sender non-delivery notification: 1C91898372
    Apr 2 18:00:57 isp postfix/qmgr[6419]: 1C91898372: from=<>, size=2838, nrcpt=1 (queue active)
    Apr 2 18:00:57 isp postfix/cleanup[22170]: 1C91898372: message-id=<20090403010057.1C91898372@isp.kernbits.net>
    Apr 2 18:00:57 isp postfix/smtp[22171]: 41A8098366: to=<reason8@att.net>, relay=aln-mailrelay.att.net[12.102.252.75]:25, delay=0.65, delays=0.19/0.11/0.29/0.06, dsn=5.0.
    0, status=bounced (host aln-mailrelay.att.net[12.102.252.75] said: 521-76.228.202.193 blocked by sbc:blacklist.mailrelay.att.net. 521 DNSRBL: Blocked for abuse. See http:
    //att.net/blocks (in reply to MAIL FROM command))

    I checked http://www.spamhaus.org for SBL, XBL, and PBL but it does not show a black list of any sort.
     
  14. till

    till Super Moderator Staff Member ISPConfig Developer

    Do you run your server on a dsl or calbe line at home or is your server in a datacenter?
     
  15. reason8

    reason8 New Member

    I run it at home on dsl with dynamic IP using a ddns client. There is something happening now when I send email from the ispconfig server. I get an error of:

    "it was not possible to send this e-mail

    SMTP Error: Recipient not accepted. Verify your relay rules

    « Back"

    This happens when trying to send to an email address out on the internet. It started doing this one or two days ago.

    I used a tool to telnet to the ispconfig smtp port 25 and it was successful so I know it is open and not blocked.
     
  16. till

    till Super Moderator Staff Member ISPConfig Developer

    All larger email provider are blocking emails that are sent from a dsl line with dynamic IP. So your server is working properly but the providers were you want to send mail to will not accept any mails from your server.

    Either you will have to put your server in a datacenter with a fixed IP address or you use a external mail server to relay your email trogh that server.
     
  17. reason8

    reason8 New Member

    But it was working last week with no problem. Then this week it just stopped. What could explain this?

    Also, if I have to set up relaying, how would I go about implementing this? I have a mail relay account but I dont know how to incoporate it into postfix. My relay provider has this information on their website:

    This document describes 5 easy steps to setup your Postfix email server as smarthost to relay on DNS Exit mail relay server for all email sending.

    The mail relay service from dnsExit.com can be found at here

    1. Create password maps file (it assigns username/passwords to specified mail servers). You can choose any name, let's say it is /etc/postfix/relay_passwd. It's content should be as follows:

    relay.dnsexit.com USERNAME:pASSWORD

    Note: Replace USERNAME and PASSWORD with your DNS EXIT mail relay username and PASSWORD.


    2. Set proper permissions for that file:
    # chown root:root /etc/postfix/relay_passwd
    # chmod 600 /etc/postfix/relay_passwd


    3. Create hash from maps file (remember to do it each time you change your maps file):
    # postmap /etc/postfix/relay_passwd



    4. Configure your /etc/postfix/main.cf:
    relayhost = [relay.dnsexit.com]
    smtp_sasl_auth_enable = yes
    smtp_sasl_password_maps = hash:/etc/postfix/relay_passwd
    smtp_sasl_security_options =

    Note: If your ISP blocks outgoing port 25. You can choose to use alternative SMTP ports by appending the port at the end:
    relayhost = [relay.dnsexit.com]:26


    5. Reload or restart your postfix:
    # /etc/init.d/postfix restart


    I set it up this way but I still got the same error. Also, if what you are saying is true, would that stop me from sending emails to other addressed on the same server? For example, I have user@domain1.com and send an email to user@domain2.com (both are hosted on ISPConfig Server. I do not get the mail relay error in isconfig but user@domain2.com does not get the email.

    Thanks.
     
    Last edited: Apr 4, 2009
  18. falko

    falko Super Moderator ISPConfig Developer

    Please check if your IP is blacklisted: http://mxtoolbox.com/blacklists.aspx

    http://www.howtoforge.com/postfix_relaying_through_another_mailserver

    No.
    Are there any errors in your mail log?
     
  19. reason8

    reason8 New Member

    This is what I have in my mail log file:

    Apr 4 10:18:39 isp pop3d: LOGOUT, user=web17_fbfg, ip=[::ffff:192.168.1.5], port=[53491], top=0, retr=0, rcvd=12, sent=39, time=0
    Apr 4 10:18:39 isp pop3d: LOGIN, user=web17_fbfg, ip=[::ffff:192.168.1.5], port=[53491]
    Apr 4 10:18:39 isp pop3d: Connection, ip=[::ffff:192.168.1.5]
    Apr 4 10:16:39 isp postfix/qmgr[5333]: 0618C98369: removed
    Apr 4 10:16:39 isp postfix/local[15031]: 0618C98369: to=<web2_admin@isp.kernbits.net>, orig_to=<admin@kernbits.com>, relay=local, delay=25, delays=0.2/0.03/0/24, dsn=2
    .0.0, status=sent (delivered to command: /usr/bin/procmail -f-)
    Apr 4 10:16:15 isp postfix/qmgr[5333]: 6442F98376: removed
    Apr 4 10:16:15 isp postfix/local[15048]: 6442F98376: to=<admispconfig@localhost.localdomain>, relay=local, delay=0.32, delays=0.18/0.04/0/0.1, dsn=2.0.0, status=sent (
    delivered to command: /usr/bin/procmail -f-)
    Apr 4 10:16:15 isp postfix/qmgr[5333]: 6442F98376: from=<web2_admin@isp.kernbits.net>, size=378, nrcpt=1 (queue active)
    Apr 4 10:16:15 isp postfix/cleanup[15030]: 6442F98376: message-id=<20090404171615.6442F98376@isp.kernbits.net>
    Apr 4 10:16:15 isp postfix/pickup[13476]: 6442F98376: uid=10002 from=<web2_admin>
    Apr 4 10:16:15 isp postfix/smtpd[15026]: disconnect from bay0-omc3-s40.bay0.hotmail.com[65.54.246.240]
    Apr 4 10:16:15 isp postfix/qmgr[5333]: 0618C98369: from=<rayv.e@hotmail.com>, size=2183, nrcpt=1 (queue active)
    Apr 4 10:16:15 isp postfix/cleanup[15030]: 0618C98369: message-id=<BAY112-W55F90943D6717695034F7E98860@phx.gbl>
    Apr 4 10:16:15 isp postfix/smtpd[15026]: 0618C98369: client=bay0-omc3-s40.bay0.hotmail.com[65.54.246.240]
    Apr 4 10:16:14 isp postfix/smtpd[15026]: warning: support for restriction "check_relay_domains" will be removed from Postfix; use "reject_unauth_destination" instead
    Apr 4 10:16:14 isp postfix/smtpd[15026]: connect from bay0-omc3-s40.bay0.hotmail.com[65.54.246.240]
    Apr 4 10:13:28 isp postfix/anvil[14823]: statistics: max cache size 1 at Apr 4 10:10:08
    Apr 4 10:13:28 isp postfix/anvil[14823]: statistics: max connection count 1 for (smtp:69.147.92.115) at Apr 4 10:10:08
    Apr 4 10:13:28 isp postfix/anvil[14823]: statistics: max connection rate 1/60s for (smtp:69.147.92.115) at Apr 4 10:10:08
    Apr 4 10:12:39 isp pop3d: LOGOUT, user=web17_fbfg, ip=[::ffff:192.168.1.5], port=[53415], top=0, retr=0, rcvd=12, sent=39, time=0
    Apr 4 10:12:39 isp pop3d: LOGIN, user=web17_fbfg, ip=[::ffff:192.168.1.5], port=[53415]
    Apr 4 10:12:39 isp pop3d: Connection, ip=[::ffff:192.168.1.5]
    Apr 4 10:10:31 isp postfix/qmgr[5333]: 3595398369: removed
    Apr 4 10:10:31 isp postfix/local[14826]: 3595398369: to=<web2_admin@isp.kernbits.net>, orig_to=<admin@kernbits.com>, relay=local, delay=24, delays=0.27/0.03/0/23, dsn=
    2.0.0, status=sent (delivered to command: /usr/bin/procmail -f-)
    Apr 4 10:10:30 isp pop3d: LOGOUT, user=web17_fbfg, ip=[::ffff:192.168.1.5], port=[53410], top=0, retr=0, rcvd=12, sent=39, time=0
    Apr 4 10:10:30 isp pop3d: LOGIN, user=web17_fbfg, ip=[::ffff:192.168.1.5], port=[53410]
    Apr 4 10:10:30 isp pop3d: Connection, ip=[::ffff:192.168.1.5]
    Apr 4 10:10:26 isp pop3d: LOGOUT, user=web17_fbfg, ip=[::ffff:192.168.1.5], port=[53406], top=0, retr=0, rcvd=12, sent=39, time=1
    Apr 4 10:10:25 isp pop3d: LOGIN, user=web17_fbfg, ip=[::ffff:192.168.1.5], port=[53406]
    Apr 4 10:10:25 isp pop3d: Connection, ip=[::ffff:192.168.1.5]
    Apr 4 10:10:16 isp pop3d: LOGOUT, user=web25_kernbits, ip=[::1], port=[58720], top=0, retr=0, rcvd=12, sent=88, time=0
    Apr 4 10:10:16 isp pop3d: LOGIN, user=web25_kernbits, ip=[::1], port=[58720]
    Apr 4 10:10:16 isp pop3d: Connection, ip=[::1]
    Apr 4 10:10:08 isp postfix/qmgr[5333]: 9FC7098376: removed
    Apr 4 10:10:08 isp postfix/local[14843]: 9FC7098376: to=<admispconfig@localhost.localdomain>, relay=local, delay=0.32, delays=0.16/0.06/0/0.1, dsn=2.0.0, status=sent (
    delivered to command: /usr/bin/procmail -f-)
    Apr 4 10:10:08 isp postfix/qmgr[5333]: 9FC7098376: from=<web2_admin@isp.kernbits.net>, size=378, nrcpt=1 (queue active)
    Apr 4 10:10:08 isp postfix/cleanup[14825]: 9FC7098376: message-id=<20090404171008.9FC7098376@isp.kernbits.net>
    Apr 4 10:10:08 isp postfix/pickup[13476]: 9FC7098376: uid=10002 from=<web2_admin>
    Apr 4 10:10:08 isp postfix/smtpd[14819]: disconnect from web83910.mail.sp1.yahoo.com[69.147.92.115]
    Apr 4 10:10:08 isp postfix/qmgr[5333]: 3595398369: from=<reason8@att.net>, size=1337, nrcpt=1 (queue active)
    Apr 4 10:10:08 isp postfix/cleanup[14825]: 3595398369: message-id=<640422.13383.qm@web83910.mail.sp1.yahoo.com>
    Apr 4 10:10:08 isp postfix/smtpd[14819]: 3595398369: client=web83910.mail.sp1.yahoo.com[69.147.92.115]
    Apr 4 10:10:08 isp postfix/smtpd[14819]: warning: support for restriction "check_relay_domains" will be removed from Postfix; use "reject_unauth_destination" instead

    I did find that I can use thunderbird to send mail to my personal account (that I have a registered domain with) using a smtp email account I created on ISPConfig and then retrieve it via thunderbird pop.

    I *cannot* receive email to an att email account which is part of my isp service.

    I did send email to my hotmail account, and received it, but the mail was sent to my junk mail. So I think ATT is blocking it or something.

    But that does not explain why I am not able to send mail from one ISPConfig user account to another ISPConfig user account nor does it explain why I can not receive email at my ISPConfig user account from my email account which I have a personal domain for *or receive email at my ISPConfig account from my att account.

    I am completely stumped. Like I said, this was working at the end of march. THe only thing I changed was on my ddns end. I deleted all dns records and recreated them because my dynamic ip was not being updated on there system and I thought it was because I had a wrong configuration.

    I appreciate any help you may have to offer.
     
  20. till

    till Super Moderator Staff Member ISPConfig Developer

    Please make sure that you enabled the maildir checkbox under management > server > settings in ispconfig.
     

Share This Page