Problems with email sending on phone

Discussion in 'Installation/Configuration' started by Daninor, Aug 30, 2013.

  1. Daninor

    Daninor New Member

    Hey

    I've tried to add my email account on my Android phone (Galaxy S4), and i'm not getting outgoing mail to work. Only incoming mail works. My phone can't connect to outgoing server.

    I'm using Roundcube, and it works perfect there.

    Any ideas on where I can start? Where is the logs? I've checked logs folder, but every error file there is blank. :confused:

    Hope you can help me!! :D:cool:
     
  2. Turbanator

    Turbanator Member HowtoForge Supporter

    Is this your server that you can see the setting in ISPC?

    What dist and version ISPC?

    IMAP? pop? SSL?

    Router ports forwarded?
     
  3. Daninor

    Daninor New Member

    Hi. Its ispconfig 3033.
    IMAP is tried, pop is tried and ssl.

    How do I check that? My server is hosted at Ovh / Kimsufi.
     
  4. Turbanator

    Turbanator Member HowtoForge Supporter

    Outgoing on your phone isn't working, correct?

    In your outgoing settings, make sure you check that outgoing server requires authentication and that you are sending your login info.
     
  5. Daninor

    Daninor New Member

  6. Turbanator

    Turbanator Member HowtoForge Supporter

    try NO SSL and port 587 first.
    If that doesn't work try port 25.

    if those both don't work, you may need to post your postfix/master.cf
     
  7. Daninor

    Daninor New Member

    NO SSL and port 587 leads to same error as before.
    NO SSL and port 25 leads to same error also. :S

    Code:
    #
    # Postfix master process configuration file.  For details on the format
    # of the file, see the master(5) manual page (command: "man 5 master").
    #
    # Do not forget to execute "postfix reload" after editing this file.
    #
    # ==========================================================================
    # service type  private unpriv  chroot  wakeup  maxproc command + args
    #               (yes)   (yes)   (yes)   (never) (100)
    # ==========================================================================
    smtp      inet  n       -       -       -       -       smtpd
    #submission inet n       -       -       -       -       smtpd
    #  -o smtpd_tls_security_level=encrypt
    #  -o smtpd_sasl_auth_enable=yes
    #  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    #  -o milter_macro_daemon_name=ORIGINATING
    #smtps     inet  n       -       -       -       -       smtpd
    #  -o smtpd_tls_wrappermode=yes
    #  -o smtpd_sasl_auth_enable=yes
    #  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    #  -o milter_macro_daemon_name=ORIGINATING
    #628       inet  n       -       -       -       -       qmqpd
    pickup    fifo  n       -       -       60      1       pickup
    cleanup   unix  n       -       -       -       0       cleanup
    qmgr      fifo  n       -       n       300     1       qmgr
    #qmgr     fifo  n       -       -       300     1       oqmgr
    tlsmgr    unix  -       -       -       1000?   1       tlsmgr
    rewrite   unix  -       -       -       -       -       trivial-rewrite
    bounce    unix  -       -       -       -       0       bounce
    defer     unix  -       -       -       -       0       bounce
    trace     unix  -       -       -       -       0       bounce
    verify    unix  -       -       -       -       1       verify
    flush     unix  n       -       -       1000?   0       flush
    proxymap  unix  -       -       n       -       -       proxymap
    proxywrite unix -       -       n       -       1       proxymap
    smtp      unix  -       -       -       -       -       smtp
    # When relaying mail as backup MX, disable fallback_relay to avoid MX loops
    relay     unix  -       -       -       -       -       smtp
    	-o smtp_fallback_relay=
    #       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
    showq     unix  n       -       -       -       -       showq
    error     unix  -       -       -       -       -       error
    retry     unix  -       -       -       -       -       error
    discard   unix  -       -       -       -       -       discard
    local     unix  -       n       n       -       -       local
    virtual   unix  -       n       n       -       -       virtual
    lmtp      unix  -       -       -       -       -       lmtp
    anvil     unix  -       -       -       -       1       anvil
    scache    unix  -       -       -       -       1       scache
    #
    # ====================================================================
    # Interfaces to non-Postfix software. Be sure to examine the manual
    # pages of the non-Postfix software to find out what options it wants.
    #
    # Many of the following services use the Postfix pipe(8) delivery
    # agent.  See the pipe(8) man page for information about ${recipient}
    # and other message envelope options.
    # ====================================================================
    #
    # maildrop. See the Postfix MAILDROP_README file for details.
    # Also specify in main.cf: maildrop_destination_recipient_limit=1
    #
    maildrop  unix  -       n       n       -       -       pipe
      flags=DRhu user=vmail argv=/usr/bin/maildrop -d vmail ${extension} ${recipient} ${user} ${nexthop} ${sender}
    #
    # ====================================================================
    #
    # Recent Cyrus versions can use the existing "lmtp" master.cf entry.
    #
    # Specify in cyrus.conf:
    #   lmtp    cmd="lmtpd -a" listen="localhost:lmtp" proto=tcp4
    #
    # Specify in main.cf one or more of the following:
    #  mailbox_transport = lmtp:inet:localhost
    #  virtual_transport = lmtp:inet:localhost
    #
    # ====================================================================
    #
    # Cyrus 2.1.5 (Amos Gouaux)
    # Also specify in main.cf: cyrus_destination_recipient_limit=1
    #
    #cyrus     unix  -       n       n       -       -       pipe
    #  user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
    #
    # ====================================================================
    # Old example of delivery via Cyrus.
    #
    #old-cyrus unix  -       n       n       -       -       pipe
    #  flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
    #
    # ====================================================================
    #
    # See the Postfix UUCP_README file for configuration details.
    #
    uucp      unix  -       n       n       -       -       pipe
      flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
    #
    # Other external delivery methods.
    #
    ifmail    unix  -       n       n       -       -       pipe
      flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
    bsmtp     unix  -       n       n       -       -       pipe
      flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
    scalemail-backend unix	-	n	n	-	2	pipe
      flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
    mailman   unix  -       n       n       -       -       pipe
      flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
      ${nexthop} ${user}
    
    dovecot   unix  -       n       n       -       -       pipe
      flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${nexthop}
    amavis unix - - - - 2 smtp
            -o smtp_data_done_timeout=1200
            -o smtp_send_xforward_command=yes
    
    127.0.0.1:10025 inet n - - - - smtpd
            -o content_filter=
            -o local_recipient_maps=
            -o relay_recipient_maps=
            -o smtpd_restriction_classes=
            -o smtpd_client_restrictions=
            -o smtpd_helo_restrictions=
            -o smtpd_sender_restrictions=
            -o smtpd_recipient_restrictions=permit_mynetworks,reject
            -o mynetworks=127.0.0.0/8
            -o strict_rfc821_envelopes=yes
            -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
            -o smtpd_bind_address=127.0.0.1
    
     
  8. Turbanator

    Turbanator Member HowtoForge Supporter

    ok well SSL is for sure not available.
    #smtps...

    can you ssh to the server and
    telnet localhost 25
    ehlo mail.domain.com
     
  9. Daninor

    Daninor New Member

    Trying 127.0.0.1...
    Connected to localhost.localdomain.
    Escape character is '^]'.
    220 myserverdomain.com ESMTP Postfix (Debian/GNU)

    echo mail.mydomain.com command just leads to
    mail.mydomain.com
     
  10. Turbanator

    Turbanator Member HowtoForge Supporter

    not echo
    "ehlo"
     
  11. Daninor

    Daninor New Member

    echo mail.mydomain.com
    mail.mydomain.com

    Nothing else happens. Do I need to do it after telnet localhost 25 or doesnt it matter?
     
  12. Turbanator

    Turbanator Member HowtoForge Supporter

    after telnet localhost 25
    Code:
    ehlo mail.domain.com
    ....note "EHLO"...NOT echo.
     
  13. Daninor

    Daninor New Member

    telnet localhost 25
    Trying 127.0.0.1...
    Connected to localhost.localdomain.
    Escape character is '^]'.
    220 serverdomain.com ESMTP Postfix (Debian/GNU)
    ehlo mail.mydomain.com
    502 5.5.2 Error: command not recognized
     
  14. Turbanator

    Turbanator Member HowtoForge Supporter

    did it actually output serverdomain.com or did you put that in?

    I think you have a mailname or host issue.

    What Perfect setup did you run?
     
  15. Daninor

    Daninor New Member

    I put it there.

    I ran the autosetup that Ovh uses so im not sure. Do you know if there is any error logs for this? And where are the config files that can be the problem? Im so noob in this :D

    Thanks so far!
     
  16. Turbanator

    Turbanator Member HowtoForge Supporter

    No problem. If you didn't use a Perfect Server install then I probably won't be much help. My guess is you need to check with OvH to see what ports they are allowing for smtp since it was some autosetup. for logs, /var/log/syslog and mail.log may help but this might be a port/firewall issue.
     
  17. dimas

    dimas Member

    First of all you need to check that postfix is configured to accept SSL STMP connections.

    Please check /etc/postfix/master.cf

    The following lines should be uncommented:

    Code:
    smtps     inet  n       -       -       -       -       smtpd
      -o smtpd_tls_wrappermode=yes
      -o smtpd_sasl_auth_enable=yes
      -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    
    Restart postfix and you should be able to send emails with the following:

    Safety: SSL accept all certificates
    port: 465
     
  18. Farsus

    Farsus New Member

    This setups work perfect for all our client:

    -----

    Dear Customer mail setup can be made in the following ways

    version 1 pop3 the straightforward version

    SMTP port 25
    pop 110

    plain password in both cases

    Version 2 pop3

    smtp port 587 SSL activates plain password
    pop port 110 plain password

    version 3 imap

    smtp port 587 SSL enabled plain password
    imap port 143 plain password

    Version 2 and 3 are the recommanded for iphone ipads and of course android systems

    -----
    Farsus Internet Service
    farsus.dk - danehost.dk - billigwebhost.dk
     

Share This Page