server name settings

Discussion in 'Installation/Configuration' started by gwa7, Jan 10, 2007.

  1. gwa7

    gwa7 New Member

    I have two domains running on ispconfig:
    clgsite.com: 69.15.24.73
    anglersonline.com :69.15.24.72

    The DNS is hosted by my ISP.

    When I do a dns report on dnsstuff.com I get this message:
    mail.clgsite.com claims to be host mail.anglersonline.com [but that host is at 69.15.24.72 (may be cached), not 69.15.24.73].

    My question is this: how do I get the server to respond as mail.clgsite.com for clgsite.com and mail.anglersonline.com for anglersonline.com?

    All the postfix messages from the server say mail.anglersonline.com even for clgsite.com

    I would like for those messages to say mail.clgsite.com for the clgsite.com domain. I don't wan't anyone on the clgsite.com domain to see mail.anglersonline.com in their emails. Is this possible?

    I appreciate any help on this.
    Gary
     
    Last edited: Jan 10, 2007
  2. mphayesuk

    mphayesuk Member HowtoForge Supporter

    Could be going off point here but what did you call your ispconfig server?

    I have used the same tools as you used on two of my domains, touch-one.co.uk and daisydays.co.uk and the records were all ok.

    So when you created the site in ispc you specifed your mail server to be internal?
     
  3. martinfst

    martinfst Member Moderator

    This is called sender based routing. Postfix can do this, but it's not very easy to setup and I don't know if it breaks ISPConfig. Google for "postfix sender based routing". The trick appears to be to setup a second Postfix instance that will be used for sending email. The original postfix instance remains for receiving email.
     
  4. gwa7

    gwa7 New Member

    mphayesuk,
    Thank you very much for your quick reply.
    Regarding the name of the ispconfig server: the host name of the computer is mail.anglersonline.com. However I have an additional ip address for clgsite.com with an alias name of clgsite. This is just the normal network configuration outside of ispconfig. Is there a place within ispconfig to set the server name? If yes, please let me know where.
    Regarding the mail server to be internal: I just checked and it was set to external. I just put it on internal. I am not sure why it was set to external. However, nothing seems to have changed.
    Thanks again for your help and I look forward to your reply.
    Gary
     
  5. gwa7

    gwa7 New Member

    martinfst,
    Thank your very much for your quick reply. I will search google like you suggested.
    Would you know of a quick way to take the mail server name out of the bounce messages so the end user does not see the mail server name? I have found info on changing the bounce template, but I don't have a bounce template.
    Thanks again,
    Gary
     
  6. gwa7

    gwa7 New Member

    Another question

    dnsstuff.com report this about clgsite.com:

    WARNING: One or more of your mailservers is claiming to be a host other than what it really is (the SMTP greeting should be a 3-digit code, followed by a space or a dash, then the host name). If your mailserver sends out E-mail using this domain in its EHLO or HELO, your E-mail might get blocked by anti-spam software. This is also a technical violation of RFC821 4.3 (and RFC2821 4.3.1). Note that the hostname given in the SMTP greeting should have an A record pointing back to the same server. Note that this one test may use a cached DNS record.

    mail.clgsite.com claims to be host mail.anglersonline.com [but that host is at 69.15.24.72 (may be cached), not 69.15.24.73].

    How do I get mail.clgsite.com to claim it is mail.clgsite.com instead of mail.anglersonline.com?
    Thanks,
    Gary
     
  7. martinfst

    martinfst Member Moderator

    Hmm, what are you bouncing? Bouncing SPAM is considered 'backscatter' nowadays and will put your server quickly on spam RBL's. It's better to accept mails and use the procmail recipies to store them immediately in a 'SPAM suspect ' mailfolder.

    You could try to isolate a recognizable piece of the bounce message and issue something like
    Code:
    grep -ir "string to search" /home/admispconfig/*
     
  8. gwa7

    gwa7 New Member

    I apologize, I don't think I made the bouncing question very clear. I don't think I am bouncing spam. I setup spam just to be discarded in ISPconfig. I think we are getting denied because of the name issue described above. Here is the message that clgsite.com email users are getting back when trying to send to certain email recipients:

    From: Mail Delivery System [mailto:[email protected]]

    Sent: Wednesday, January 10, 2007 9:08 AM
    To: [email protected]
    Subject: Undelivered Mail Returned to Sender

    This is the Postfix program at host mail.anglersonline.com.

    I'm sorry to have to inform you that your message could not
    be delivered to one or more recipients. It's attached below.

    For further assistance, please send mail to <postmaster>

    If you do so, please include this problem report. You can
    delete your own text from the attached returned message.

    The Postfix program

    <[email protected]>: host
    1stcounselsmtp1.prontomail.com[207.183.238.67]
    said: 550 5.7.1 Relaying denied. IP name lookup failed [69.15.24.70]
    Please
    see http://www.mailcentro.com/relaying-denied.html for more details
    (in
    reply to MAIL FROM command)
     
  9. falko

    falko Super Moderator Howtoforge Staff

    The problem here is that 69.15.24.70 has no PTR record:
    Code:
    dig -x 69.15.24.70
    
    ; <<>> DiG 9.3.2-P1 <<>> -x 69.15.24.70
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 47897
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;70.24.15.69.in-addr.arpa.      IN      PTR
    
    ;; AUTHORITY SECTION:
    24.15.69.in-addr.arpa.  3600    IN      SOA     24.15.69.in-addr.arpa. hostmaster.cbeyond.com. 2002062400 86400 1800 604800 3600
    
    ;; Query time: 161 msec
    ;; SERVER: 213.191.92.84#53(213.191.92.84)
    ;; WHEN: Thu Jan 11 20:09:15 2007
    ;; MSG SIZE  rcvd: 100
    Please ask the ISP that gave you that IP address to create one.

    Regarding the mail.clgsite.com problem: I think the easiest solution would be to make mail.clgsite.com point to 69.15.24.72 instead of 69.15.24.73. As it is still the same server it should work.
     
  10. gwa7

    gwa7 New Member

    Thank you for your reply. I will try that and let you know. However, I have a question. I have four ip addresses on the machine 69.15.24.70 - 73.
    I have PTR records on 69.15.24.72 and 69.15.24.73. ISPconfig runs on 69.15.24.70. I don't understand why the ip address 69.15.24.70 even comes into the picture.
    Thanks again,
    Gary
     
  11. gwa7

    gwa7 New Member

    Based on your suggestions I got it working. Here is what I did. I created a new domain name and pointed that to 69.15.24.70. The server name is mail.greatlifehosting.com. I then changed the mxrecords of the other domains to be mail.greatlifehosting.com. This made everything work and all the emails are going through now.
    Thanks to everyone for your help! This forum has been a great resource.
    Now I just have one more thing to work out with the certificates, but I will start another post on that one.
    Thanks again,
    Gary
     

Share This Page