Perfect Setup - Ubuntu 6.06, mail not getting through

Discussion in 'Installation/Configuration' started by greenpete, Feb 24, 2008.

  1. dafy

    dafy New Member

    If you're using a Cisco firewall, try disabling fixup protocol on port 25. That got me out of trouble in many cases.
     
  2. greenpete

    greenpete New Member

    No I'm not... :(
    I guess I'll just have to play around, maybe start from scratch.
    Thanks guys, for all your help.
     
  3. greenpete

    greenpete New Member

    Is it possible to configure the system to use my I.S.P.'s SMTP server for all out going mail, particularly webmail?
     
  4. falko

    falko Super Moderator ISPConfig Developer

  5. greenpete

    greenpete New Member

    I was really excited at the thought that I might get web-mail to work then I realized that the tutorial you point to uses 'SMTP-AUTH'. My I.S.P doesn't need a username and password as it relies on the fact that any smtp mail going through is from it's own customers, so how can I use this method?
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    If your provider does not need a password, youst execute:

    postconf -e 'relayhost = smtp.example.com'

    replace smtp.example.com with the mail server name of your provider and restart postfix. Thats all :)
     
  7. greenpete

    greenpete New Member

    At last. it works! Thank you.
    Still got problems though :eek: the from address is literally; '[email protected]' it should say [email protected]
    I have been through your tutorial many times as I must have missed something out when I set the system up but I can't figure what. Where/how can I rectify this?
    I have been thinking of starting from scratch, do I need to do you think?
    I have just noticed that I am getting error messages at the bottom of my incoming mail;

    Category: PHP
    Message: preg_split() expects parameter 4 to be long, string given
    FILE: /home/admispconfig/ispconfig/web/squirrelmail/functions/imap_messages.php
    LINE: 926
    Category: PHP
    Message: Invalid argument supplied for foreach()
    FILE: /home/admispconfig/ispconfig/web/squirrelmail/functions/mime.php
    LINE: 52

    Thank you for your patient help!
     
    Last edited: Mar 19, 2008
  8. falko

    falko Super Moderator ISPConfig Developer

    You must set the correct sender address in your email client.

    Take a look here: http://www.howtoforge.com/forums/showthread.php?t=9181
     
  9. dafy

    dafy New Member

    Since you are using squirrelmail, you should change the "reply-to" address to the correct one in Preferences.
     
  10. greenpete

    greenpete New Member

    Sorry guys, I knew this, you told me before! I thought I had, but it must have been a different e-mail account.:eek:
    My server is sending and receiving nicely now, except for the odd error that I mentioned, but I am on to that one next!
    Thank you so much for your help! :)
     
  11. greenpete

    greenpete New Member

    Some time down the line (to say the least!) and I can still not send mail using webmail (Talaen) on my ISPConfig/Ubuntu 9.04 server :confused:
    I have noticed that in my mail log file, after sending a message I see it was rejected on the basis that the certificate is self signed;

    Nov 15 19:18:40 cobnut postfix/cleanup[7955]: 0268621A421: message-id=<[email protected]>
    Nov 15 19:18:40 cobnut postfix/qmgr[20061]: 0268621A421: from=<[email protected]>, size=1314, nrcpt=1 (queue active)
    Nov 15 19:18:42 cobnut postfix/smtp[7959]: certificate verification failed for nano-host.co.uk[193.219.118.179]:25: self-signed certificate
    Nov 15 19:18:42 cobnut postfix/smtp[7959]: 0268621A421: to=<[email protected]>, relay=nano-host.co.uk[193.219.118.179]:25, delay=3, delays=0.14/0.02/2.6/0.29, dsn=5.0.0, status=bounced (host nano-host.co.uk[193.219.118.179] said: 550-Verification failed for <[email protected]> 550-The mail server could not deliver mail to [email protected]. The account or domain may not exist, they may be blacklisted, or missing the proper dns entries. 550 Sender verify failed (in reply to RCPT TO command))
    Nov 15 19:18:43 cobnut postfix/cleanup[7955]: 0689721A426: message-id=<[email protected]>
    Nov 15 19:18:43 cobnut postfix/qmgr[20061]: 0689721A426: from=<>, size=3854, nrcpt=1 (queue active)
    Nov 15 19:18:43 cobnut postfix/bounce[7963]: 0268621A421: sender non-delivery notification: 0689721A426
    Nov 15 19:18:43 cobnut postfix/qmgr[20061]: 0268621A421: removed
    Nov 15 19:18:43 cobnut postfix/local[7964]: 0689721A426: to=<[email protected]>, relay=local, delay=0.11, delays=0.02/0.02/0/0.07, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail -f-)
    Nov 15 19:18:43 cobnut postfix/qmgr[20061]: 0689721A426: removed

    If I was to use cert from Startssl would this help and if so how do I go about installing the cert'?

    Thanks, Peter
     
  12. falko

    falko Super Moderator ISPConfig Developer

    I don't think this has anything to do with your cert. Is cobnut.swerfordheath.com a remote server, or is it your ISPConfig system?
     
  13. greenpete

    greenpete New Member

    cobnut.swerfordheath.com is my ISPConfig server, the one I cannot send mail from when using the web interface.
    If it's not the cert, what else could it be/can you see from the log?
    Peter
     
  14. falko

    falko Super Moderator ISPConfig Developer

    Code:
    mh1:~# dig cobnut.swerfordheath.com
    
    ; <<>> DiG 9.3.4 <<>> cobnut.swerfordheath.com
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 25471
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;cobnut.swerfordheath.com.      IN      A
    
    ;; AUTHORITY SECTION:
    swerfordheath.com.      7200    IN      SOA     ns8.zoneedit.com. soacontact.zoneedit.com. 1109708953 14400 7200 950400 7200
    
    ;; Query time: 294 msec
    ;; SERVER: 213.133.98.98#53(213.133.98.98)
    ;; WHEN: Thu Nov 18 14:18:32 2010
    ;; MSG SIZE  rcvd: 102
    
    mh1:~#
    I see that there's no DNS record for cobnut.swerfordheath.com, so you should create one first.
     
  15. greenpete

    greenpete New Member

    Mmm, that's pretty dim of me!
    I have set an A record to point cobnut.swerfordheath.com at my external IP and the MX records are "cobnut.swerfordheath.com handles mail for domain swerfordheath.com".
    My test messages have worked, am now waiting on friends to get back to me.
    Thank you very much for your time!
     
  16. greenpete

    greenpete New Member

    Hi again.
    I am pleased to say that things seem to be working now!
    I found once I had my D.N.S. on order things got better, though some mail still wasn't getting through, mainly hotmail and yahoo address's would not accept mail from my server.
    Before I got my D.N.S. in order, my I.S.P's S.M.T.P. relay server wouldn't accept mail from my server either, but it does now I have sorted it, and it seems hotmail and yahoo are happy to accept mail from them!
    My I.P. is a (static) domestic one, so I am guessing that may have something to do with it?
    So, although I would rather my mail didn't go through someone else's server, at least my web mail finally works!
    Thanks Falko! :)
     

Share This Page