Page 4 of 4 FirstFirst ... 234
Results 31 to 40 of 40

Thread: Getting server to send mail

  1. #31
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Getting server to send mail

    Yes. Your config is all wrong.

    Server should be localhost
    Port 25
    No encryption
    No authentication

    Also: Be sure to set postfix to only listen to 127.0.0.1 by adding this to main.cf:
    Code:
    inet_interfaces = 127.0.0.1
    You should still verify your server is not on any blacklists otherwise you will likely have sporadic mail delivery.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  2. #32
    Join Date
    Jul 2012
    Location
    Elmira, NY
    Beans
    283
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Getting server to send mail

    changed inet_interfaces, restart postfix, changed smtp config on wordpress to localhost:25, tried to send a test email to metulburr@gmail.com and this is the new error i get. There doesnt seem to be a lot of information on the error.
    Code:
    object(PHPMailer)#413 (73) {  ["Version"]=>
      string(6) "5.2.10"
      ["Priority"]=>
      int(3)
      ["CharSet"]=>
      string(10) "iso-8859-1"
      ["ContentType"]=>
      string(10) "text/plain"
      ["Encoding"]=>
      string(4) "8bit"
      ["ErrorInfo"]=>
      string(0) ""
      ["From"]=>
      string(14) "root@localhost"
      ["FromName"]=>
      string(9) "Root User"
      ["Sender"]=>
      string(0) ""
      ["ReturnPath"]=>
      string(0) ""
      ["Subject"]=>
      string(0) ""
      ["Body"]=>
      string(0) ""
      ["AltBody"]=>
      string(0) ""
      ["Ical"]=>
      string(0) ""
      ["MIMEBody":protected]=>
      string(0) ""
      ["MIMEHeader":protected]=>
      string(0) ""
      ["mailHeader":protected]=>
      string(0) ""
      ["WordWrap"]=>
      int(0)
      ["Mailer"]=>
      string(4) "mail"
      ["Sendmail"]=>
      string(18) "/usr/sbin/sendmail"
      ["UseSendmailOptions"]=>
      bool(true)
      ["PluginDir"]=>
      string(0) ""
      ["ConfirmReadingTo"]=>
      string(0) ""
      ["Hostname"]=>
      string(0) ""
      ["MessageID"]=>
      string(0) ""
      ["MessageDate"]=>
      string(0) ""
      ["Host"]=>
      string(9) "localhost"
      ["Port"]=>
      int(25)
      ["Helo"]=>
      string(0) ""
      ["SMTPSecure"]=>
      string(0) ""
      ["SMTPAutoTLS"]=>
      bool(true)
      ["SMTPAuth"]=>
      bool(false)
      ["SMTPOptions"]=>
      array(0) {
      }
      ["Username"]=>
      string(0) ""
      ["Password"]=>
      string(0) ""
      ["AuthType"]=>
      string(0) ""
      ["Realm"]=>
      string(0) ""
      ["Workstation"]=>
      string(0) ""
      ["Timeout"]=>
      int(300)
      ["SMTPDebug"]=>
      bool(true)
      ["Debugoutput"]=>
      string(4) "echo"
      ["SMTPKeepAlive"]=>
      bool(false)
      ["SingleTo"]=>
      bool(false)
      ["SingleToArray"]=>
      array(0) {
      }
      ["do_verp"]=>
      bool(false)
      ["AllowEmpty"]=>
      bool(false)
      ["LE"]=>
      string(1) "
    "
      ["DKIM_selector"]=>
      string(0) ""
      ["DKIM_identity"]=>
      string(0) ""
      ["DKIM_passphrase"]=>
      string(0) ""
      ["DKIM_domain"]=>
      string(0) ""
      ["DKIM_private"]=>
      string(0) ""
      ["action_function"]=>
      string(0) ""
      ["XMailer"]=>
      string(0) ""
      ["smtp":protected]=>
      NULL
      ["to":protected]=>
      array(0) {
      }
      ["cc":protected]=>
      array(0) {
      }
      ["bcc":protected]=>
      array(0) {
      }
      ["ReplyTo":protected]=>
      array(0) {
      }
      ["all_recipients":protected]=>
      array(0) {
      }
      ["attachment":protected]=>
      array(0) {
      }
      ["CustomHeader":protected]=>
      array(0) {
      }
      ["lastMessageID":protected]=>
      string(0) ""
      ["message_type":protected]=>
      string(0) ""
      ["boundary":protected]=>
      array(0) {
      }
      ["language":protected]=>
      array(0) {
      }
      ["error_count":protected]=>
      int(0)
      ["sign_cert_file":protected]=>
      string(0) ""
      ["sign_key_file":protected]=>
      string(0) ""
      ["sign_extracerts_file":protected]=>
      string(0) ""
      ["sign_key_pass":protected]=>
      string(0) ""
      ["exceptions":protected]=>
      bool(true)
      ["uniqueid":protected]=>
      string(0) ""
    }

    I tried mxtoolbox but i get an error saying its unable to connect to my server
    http://imgur.com/SEZR62P
    Last edited by micahpage; October 5th, 2015 at 12:25 PM.

  3. #33
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Getting server to send mail

    If you are going to be using mxtoolbox, you would need to set postfix to listen on all interfaces instead of only on 127.0.0.1.

    I told you to set it that way so no one from the outside could use your server as a relay (even tho if isn't set up to allow that atm).

    On the bright side, the IP in your screenshot isn't blacklisted anywhere.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  4. #34
    Join Date
    Jul 2012
    Location
    Elmira, NY
    Beans
    283
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Getting server to send mail

    i reverted the inet_address to all and got OK for all lists.

  5. #35
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Getting server to send mail

    That error just looks like garbage to me. Can you get a screenshot?
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  6. #36
    Join Date
    Jul 2012
    Location
    Elmira, NY
    Beans
    283
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Getting server to send mail

    I used a plugin in wordpress to aid with smtp. After configuring that, and granting permissions with google, i am successfully sending email verifications.
    the plugin was
    https://wordpress.org/plugins/postman-smtp/

    Is this using my server, and the settings i changed through this thread? OR is it bypassing and using my gmail account to send emails? I am assuming the latter as the email was from my gmail and not python-gaming@python-gaming.com? I am not sure but my end goal is complete by sending email verification to new users.

  7. #37
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Getting server to send mail

    It looks to be sending the mail thru your gmail, which is likely not what you want.

    I don't use wordpress, so I don't know what that plugin is supposed to do.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  8. #38
    Join Date
    Jul 2012
    Location
    Elmira, NY
    Beans
    283
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Getting server to send mail

    I definitely did not want to use wordpress. But i could not find software that allowed users to register on your site, create an account, and make their own page within a subdirectory of your site. Is there any other software that would do that?

  9. #39
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Getting server to send mail

    I don't know. I don't use any CMS for my website.

    Personally, I would suggest setting up a test server (maybe locally?) and make sure you have postfix working correctly before even touching the CMS.

    Might be a good idea and start from scratch instead of following that howto you found on the Ubuntu help pages.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  10. #40
    Join Date
    Jul 2012
    Location
    Elmira, NY
    Beans
    283
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Getting server to send mail

    OK thank you for the help.

Page 4 of 4 FirstFirst ... 234

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •