Need help on Webmin / Usermin mail ....

45 posts / 0 new
Last post
#1 Thu, 02/06/2014 - 21:21
matuog

Need help on Webmin / Usermin mail ....

I use to install Vistualmin / Webmin but my webscript looks fine working in Webmin (root) so I don't create new server in Virtualmin and use Webmin (root) for my webscript under /var/www/html, but now the problem arise when I want 2/3 incoming outgoing mailbox for my webscript.

M using CenOS 6 32bit, suppose my ip is 111.222.333.444 and my domain in abcd.com

I used following list of commands form 'http://www.virtualmin.com/documentation/id,centos_5_install/' for install and update Webmin in my VPS.

yum update
yum install perl
yum install nano
nano /etc/hostname
enter 'myhost.abcd.com' in the new file 'hostname'
make a backup of file 'hosts' 'cp /etc/hosts /etc/hostsbackup'
nano /etc/hosts
enter '111.222.333.444 myhost.abcd.com myhost'
    before
    "127.0.0.1 localhost.localdomain localhost localhost4.localdomain4 localhost4
    and
    ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 "

hostname --fqdn
cat /etc/hostname
cat /etc/hosts
hostname -d
hostname -s
hostname -f
uname -a
wget http://software.virtualmin.com/gpl/scripts/install.sh
/bin/sh install.sh
yum update

After that enter into Virtualmin by 'https://myhost.abcd.com:10000'
Configure 'Post-Installation Wizard' as follows . . . . . .

  • Preload Virtualmin libraries? = No
  • Run email domain lookup server? = No
  • Run ClamAV server scanner? = No
  • Run SpamAssassin server filter? = No
  • Run MySQL database server? = Yes
  • Run PostgreSQL database server? = No
  • Set MySQL password 'XXXXXXXXXXXXXXXXXXXX'
  • MySQL configuration size = 'Medium system (512M) with regular MySQL use'
  • CHECK 'Skip check for resolvability'
  • Password storage mode = 'Only store hashed passwords'

    I use maximum mail related option "NO" in 'Post-Installation Wizard' because m not using heavy mail system, only need 3 following mail ids to send and received e-mails by Usermin.
    1- admin@abcd.com
    2- info@abcd.com
    3- no-reply@abcd.com

    Under '/var/www/html' form 'Webmin -> Others -> File Manager' I upload my files and installed the webscript but can't make this 3 mail account and use it with my script .


    I just want to know, do I miss anything or do I skip any step(s) which may setup my mail box with mail account(s). Please guide me, what I have to do next to setup this 3 mail id account(s) without making any more extra users or groups ???

  • Thu, 02/06/2014 - 22:38
    andreychek

    Howdy,

    Well, Virtualmin uses /home for websites and email, not /var/www.

    You may have a difficult time trying to get it to work using an alternate directory, as it isn't designed to work that way.

    That said -- what problem are you having specifically? You mentioned that you are experiencing a problem setting up email, but I don't see what problem it is that you're having.

    Let us know what problem you're having, and what errors, if any, show up in /var/log/maillog when the issue occurs.

    -Eric

    Fri, 02/07/2014 - 04:15 (Reply to #2)
    matuog

    Thanks for the reply -Eric

    I understand what U mean but when I use www.abcd.com or abcd.com or myhost.abcd.com, it redirect me to the default apache page and when I upload my webscript into '/var/www/html' and install it, it worked with my domain name without any nameservers configuration inside Virtualmin -> new user -> DNS record. So I thought may be using '/var/www/html' under root is good.

    Lots of thanks for the guideline but please help me a little more .....

    As I told before, I used 'http://www.virtualmin.com/documentation/id,centos_5_install/' instruction for install and update Virtualmin / Webmin in CentOS 6 32bit. In this page, some where it instruct to do

    nano /etc/hostname
    myhost.abcd.com

    nano /etc/hosts
    111.222.333.444 myhost.abcd.com myhost

    'hostname' is a new file under '/etc/' but 'hosts' already contain following lines

    127.0.0.1 localhost.localdomain localhost localhost4.localdomain4 localhost4
    # Auto-generated hostname. Please do not remove this comment.
    111.222.333.444 myhost.abcd.com myhost
    ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

    I changed it with into

    # Auto-generated hostname. Please do not remove this comment.
    111.222.333.444 myhost.abcd.com myhost
    127.0.0.1 localhost.localdomain localhost localhost4.localdomain4 localhost4

    M I did something wrong by changing the line pattern inside the file 'hosts'?
    Without setup a new server user under Virtualmin and without configure nameservers under new server user DNS record - how can I get my website directly form root '/var/www/html'
    Can U please guide me or help me or redirect me into a simple and proper process of Virtualmin full installation inside CentOS 6 32bit including 3 email id accounts construction by SSH and https://ip:10000 and https://ip:20000 I already waste 22 days by reading and doing trial and error method but everytime I faced some problem like domain name configure error, outgoing email error or Webmin stop. I would be highly oblige if U kindly help me ........ lots of THANKS in advance.

    Sat, 02/08/2014 - 14:19
    matuog

    Need help for making mail account working properly .... please help

    M using CenOS 6 32bit, suppose my ip is '111.222.333.444', my domain in 'abcd.com' and my host name is 'myhost.abcd.com'

    Login using root id and pw in https://myhost.abcd.com:10000
    use Virtualmin -> Edit Users -> Add a user to this server
    use 'no-reply' as mail id, therefore email will be 'no-reply@abcd.com'
    fill 'Real name' and 'Password' and hit 'Creat'

    but after create mail id 'no-reply@abcd.com' m facing 2 problems

    1= when I try to enter mail account by
    Virtualmin -> Edit Users -> CLICK 'no-reply' -> Login to Usermin
    I can enter mail box but when I try to enter form https://myhost.abcd.com:20000
    I get 'Login failed. Please try again.' and I used https://www.abcd.com:20000
    but result is same 'Login failed. Please try again.'

    2= When I send any mail form any external mail id to 'no-reply@abcd.com'
    I can easily receive the mail but when I try to send mail form 'no-reply@abcd.com'
    to any external id, I can not receive the mail(s) after a 24 or 48 hrs.

    How do I configure my mail account so that I can open my mail from Usermin https://myhost.abcd.com:20000 or https://www.abcd.com:20000
    (don't know which one to use or using which one is correct)
    AND
    How do I can able to send mail form my mail ids

    DO I MAKE ANY WRONG IN CREATING A MAIL ACCOUNT ? ? ?

    Sat, 02/08/2014 - 15:40 (Reply to #4)
    matuog

    Can someone please help ...

    Sat, 02/08/2014 - 16:42
    Locutus

    Don't be so impatient. Also, putting entire paragraphs in bold or capitals doesn't help.

    1. What credentials are you using? Virtualmin will show you the correct username in the "Edit User" screen. It depends on various bits in your Virtualmin config.

    2. Check the mail log in /var/log at the moment of send attempt, if the mail was delivered successfully, and if not, what happened.

    Sat, 02/08/2014 - 18:34 (Reply to #6)
    matuog

    Do U think, waiting near about long 2 days (from 2014-02-07 15:45 to 2014-02-09 01:49) is a sign of "impatient". . . then m SORRY

    And I use bold or capitals for problems, what I did, what r the tropics I need help and what r the mistake /cause I need to rectify, - describe then separately form one another not for design the paragraph or nor for help me; I did all to make as much as easy for the reader to clear what I mean to say.

    1. I don't understand what U mean to say by 'Virtualmin will show you the correct username in the "Edit User" screen' because I don't say Virtualmin will not show me the correct username in the "Edit User" screen. Frankly speaking, it's not clear for me what U mean in "What credentials ................... your Virtualmin config." because m not so good at Virtualmin / Webmin, so I request for help, I surrendered.

    M using CentOS Linux 6.5 32bit, Virtualmin v4.04.gpl, Webmin 1.675.

    I just mean to say, I create a mail account 'no-reply' as per "https://www.virtualmin.com/documentation/tutorial/how-to-create-email-ac..." but I can open it from Virtualmin / Webmin (https://hostname:10000) Edit Users -> CLICK 'no-reply' -> Login to Usermin but can not open it form Usermin, showing 'Login failed. Please try again'. I already try it by changing password form inside the Virtualmin but same as it is when I try with Usermin. and m receiving mail, incoming mail are fine but can't send mail (after sending mail from compose section, it display "Sending mail to receiver mail id .... done." but mail can't reach to receiver mail box, to whom I send mail)

    2. As per your define path, I get mail log file, contain lots of information and error massages, so fur I understand I get the following massage at the time of sending a mail to matuog@gmail.com form no-reply@adcb.com "Feb 8 18:14:34 hostgoutam postfix/smtp[30892]: connect to alt2.gmail-smtp-in.l.google.com[2a00:1450:400c:c00::1a]:25: Connection timed out. Feb 8 18:14:34 hostgoutam postfix/smtp[30892]: 81DAEC6BC62: to=, relay=none, delay=150, delays=0.09/0.03/150/0, dsn=4.4.1, status=deferred (connect to alt2.gmail-smtp-in.l.google.com[2a00:1450:400c:c00::1a]:25: Connection timed out)
    "

    M really appreciate your works and guidelines but m facing lots of trouble form the beginning as m not so good at Virtualmin, solved most of the problems by the help of U guys and form internet forums but m working on this mail problem for long times and at last, after waiting 2 days (from 2014-02-07 15:45) I try with second request to forum. Sorry if I did something wrong and please help me .....

    Sat, 02/08/2014 - 18:57
    Locutus

    Well you posted your "Can someone please help" just one hour after your previous message, hence my remark. Note that we're giving help here for free in our spare time, also there's timezones, so people aren't always around to reply right away.

    1. On the "Edit User" screen (click "Edit Users", then the user you want to look at), Virtualmin shows you the "IMAP / POP3 / FTP Login". That's the username you need to use in Usermin. (It can be, but does not have to be, different from the email address. You can configure in Virtualmin what format for usernames it's going to use -- like adding the full or partial domain name, separated with @ or . or something.) I suppose when you get the login error, you're just using the wrong username or password.

    2. Your log shows that your server could not connect to Google's email server. Since it's trying to use IPv6 addresses, it might be related to that. Does your server also have an IPv4 address? If so, you might want to disable IPv6 in Postfix by adding the line

    inet_protocols = ipv4

    to the file /etc/postfix/main.cf and restarting Postfix.

    Sat, 02/08/2014 - 19:22 (Reply to #8)
    matuog

    M extremely sorry for the misunderstanding and really I mean that m appreciate your help for lifetime

    Sun, 02/09/2014 - 05:09 (Reply to #9)
    Locutus

    Roger, don't worry. :) Let us know if you're making progress.

    Sun, 02/09/2014 - 12:18 (Reply to #10)
    matuog

    I tried 'inet_protocols = ipv4' form the file '/etc/postfix/main.cf'.

    1- When tried 'inet_protocols = ipv4'
    result show - "Sending mail to Goutam Chakraborty ..... done"
    but cause the same error and mail not send.

    2- When tried 'inet_protocols = IPv4'
    result show - "Sending mail to Goutam Chakraborty ..."
    but cause the error "Feb 8 21:14:39 hostgoutam postfix/pickup[4649]: fatal: unknown inet_protocols value "IPv4" in "IPv4". Feb 8 21:14:40 hostgoutam postfix/master[6498]: warning: process /usr/libexec/postfix/qmgr pid 4650 exit status 1" and mail not send.

    3- When tried 'inet_protocols = 111.222.333.444'
    result show - "Sending mail to Goutam Chakraborty .."
    but cause the same error "Feb 9 12:52:34 hostgoutam postfix/sendmail[2076]: fatal: unknown inet_protocols value '111.222.333.444' in '111.222.333.444' " and mail not send.

    Please help and guide what I can do now ..... ? ? ?

    N.B.- restarting Postfix failed when try with ssh '/etc/init.d/postfix restart'

    Sun, 02/09/2014 - 12:56
    Locutus

    The setting is, as I wrote, "inet_protocols = ipv4". No upper case, and not an IP address. Please post the full log excerpt when you try to send a mail with that setting active. It can't be the exact same error as before, since before your Postfix was trying to use IPv6 addresses. Don't forget to restart Postfix after making config changes.

    Sun, 02/09/2014 - 13:00 (Reply to #12)
    matuog

    How do I restart Postfix ?? - by using '/etc/init.d/postfix restart' form SSH (PuTTY).
    Or do Virtualmin have any GUI process of restart like restart
    APACHE SERVER form ' Webmin -> Servers -> Apache Webserver '

    Sun, 02/09/2014 - 13:04
    Locutus

    Yes, the init.d command should work. Not sure for CentOS, I'm using Ubuntu. And yes, Webmin also has a Postfix module with a start/stop button.

    Sun, 02/09/2014 - 14:10 (Reply to #14)
    matuog

    Yes, I did all as U said, SIR

    First change ' inet_protocols = ipv4 ' in the file ' /etc/postfix/main.cf '
    Then restart Postfix by ' /etc/init.d/postfix restart '
    by SSH (PuTTY) as 'root' and it show OK (in green)
    Then collect the 1st mail log form '/var/log'
    Then try to send mail which display the following line
    " Sending mail to Goutam Chakraborty ..
    .. done. "
    Then collect the 2nd mail log form '/var/log'
    And the different of 1st and 2nd mail log file is given below

    Feb 9 13:58:01 myhost postfix/pickup[4347]: F36C0C6BCEA: uid=501 from=
    Feb 9 13:58:02 myhost postfix/cleanup[4388]: F36C0C6BCEA: message-id=<20140209185801.F36C0C6BCEA@myhost.abcd.com>
    Feb 9 13:58:02 myhost postfix/qmgr[4348]: F36C0C6BCEA: from=, size=1145, nrcpt=1 (queue active)
    Feb 9 13:58:02 myhost postfix/error[4499]: F36C0C6BCEA: to=, relay=none, delay=0.16, delays=0.13/0/0/0.03, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt4.gmail-smtp-in.l.google.com[173.194.70.27]:25: Connection timed out)
    Feb 9 13:58:09 myhost postfix/smtpd[4546]: connect from localhost.localdomain[127.0.0.1]
    Feb 9 13:58:09 myhost postfix/smtpd[4546]: 71BAAC6BCE4: client=localhost.localdomain[127.0.0.1]
    Feb 9 13:58:09 myhost postfix/cleanup[4388]: 71BAAC6BCE4: message-id=<1391972289.4465@abcd.com>
    Feb 9 13:58:09 myhost postfix/qmgr[4348]: 71BAAC6BCE4: from=, size=993, nrcpt=1 (queue active)
    Feb 9 13:58:09 myhost postfix/smtpd[4546]: disconnect from localhost.localdomain[127.0.0.1]
    Feb 9 13:58:09 myhost postfix/error[4507]: 71BAAC6BCE4: to=, relay=none, delay=0.05, delays=0.05/0/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt4.gmail-smtp-in.l.google.com[173.194.70.27]:25: Connection timed out)

    Sun, 02/09/2014 - 14:23
    Locutus

    Okay, the connection from your server to Google also timed out on IPv4:

    Feb  9 13:58:09 myhost postfix/error[4507]: 71BAAC6BCE4: to=<matuog@gmail.com>, relay=none, delay=0.05, delays=0.05/0/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt4.gmail-smtp-in.l.google.com[173.194.70.27]:25: Connection timed out)

    Try connecting to that host via telnet and see if you can ping it or traceroute to it:

    ping 173.194.70.27
    mtr 173.194.70.27
    telnet 173.194.70.27 25

    You need to check if port 25 is blocked generally outgoing by a local firewall, by your hoster or something else. Maybe Google is blocking your IP for some reason. Difficult to say, can have any number of reasons.

    For further analysis, since this is getting somewhat time-intensive to debug via forum, I can offer to communicate via instant messenger and to log on to your system myself and try to fix things. I can't promise though that I find a solution, and if it takes longer than about 30 minutes, I'll need to charge a moderate fee (need to make a living and can only devote so much time to free help per person :) ).

    Mon, 02/10/2014 - 06:58 (Reply to #16)
    matuog

    My port 25 is not blocked by a local firewall because,
    when I try "telnet abcd.com 25" by SSH root, it return

    Trying 111.222.333.444...
    Connected to abcd.com.
    Escape character is '^]'.
    220 myhost.abcd.com ESMTP Postfix

    Not look like google blocking my IP because
    same thing happen with other mail server . . . . . also,

    when try to send mail to yahoo mail, it return ...

    Feb 9 17:41:45 hostgoutam postfix/smtp[11292]: F20E1C6BDC9: to=, relay=none, delay=62, delays=1.1/0.43/60/0, dsn=4.4.1, status=deferred (connect to mx-apac.mail.gm0.yahoodns.net[106.10.166.54]:25: Connection timed out)

    when try to send mail to gmail, it return ...

    Feb 9 17:44:34 hostgoutam postfix/smtp[11292]: 3E3E8C6BDCC: to=, relay=none, delay=150, delays=0.06/0.02/150/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[173.194.70.26]:25: Connection timed out)

    Is there any way that I can reset or reconfigure my total Postfix setting ?

    Mon, 02/10/2014 - 07:01
    Locutus

    When you can telnet to port 25 of a server, Postfix should be able to connect to it too. I see no reason why Postfix should time out trying to do so.

    What server did you try in your telnet test? Using placeholders is not helpful when we're trying to debug stuff. :) Try telnet to port 25 of the exact IP that Postfix fails to connect to please.

    Mon, 02/10/2014 - 07:37 (Reply to #18)
    matuog

    May be U r right ...
    When I try telnet with yahoo mail by "telnet mx-apac.mail.gm0.yahoodns.net 25" I get -

    [root@myhost ~]# telnet mx-apac.mail.gm0.yahoodns.net 25
    Trying 106.10.166.52...
    telnet: connect to address 106.10.166.52: Connection timed out
    Trying 106.10.166.54...
    telnet: connect to address 106.10.166.54: Connection timed out

    When I try telnet with gmail by "telnet gmail-smtp-in.l.google.com 25" I get -

    [root@myhost ~]# telnet gmail-smtp-in.l.google.com 25
    Trying 74.125.196.27...
    telnet: connect to address 74.125.196.27: Connection timed out
    Trying 2607:f8b0:4002:c07::1a...
    telnet: connect to address 2607:f8b0:4002:c07::1a: Connection timed out

    If my port 25 is block, how can I confirmly check it (means by which ssh command) ??
    How and form where can I open my port 25 form Virtualmin / webmin ??

    Please help ...

    Mon, 02/10/2014 - 07:43
    Locutus

    Please execute ALL the commands I posted in my previous post. I asked you to do ping and mtr too for a reason.

    ping 173.194.70.27
    mtr 173.194.70.27
    telnet 173.194.70.27 25

    (You already did telnet apparently. And you might need to install a package for mtr.)

    And please answer all questions that I post, otherwise it's getting really stressful to try and help you. Namely, which server did you telnet to port 25 to previously, when it worked? Giving placeholder IPs is not helpful when trying to debug stuff.

    Mon, 02/10/2014 - 08:12 (Reply to #20)
    matuog

    When I use "ping 173.194.70.27" it start running following code

    64 bytes from 173.194.70.27: icmp_seq=1 ttl=45 time=108 ms
    64 bytes from 173.194.70.27: icmp_seq=2 ttl=45 time=108 ms
    64 bytes from 173.194.70.27: icmp_seq=3 ttl=45 time=108 ms
    64 bytes from 173.194.70.27: icmp_seq=4 ttl=45 time=108 ms
    64 bytes from 173.194.70.27: icmp_seq=5 ttl=45 time=108 ms
    64 bytes from 173.194.70.27: icmp_seq=6 ttl=45 time=109 ms
    64 bytes from 173.194.70.27: icmp_seq=7 ttl=45 time=108 ms
    64 bytes from 173.194.70.27: icmp_seq=8 ttl=45 time=108 ms
    64 bytes from 173.194.70.27: icmp_seq=9 ttl=45 time=108 ms
    64 bytes from 173.194.70.27: icmp_seq=10 ttl=45 time=108 ms
    64 bytes from 173.194.70.27: icmp_seq=11 ttl=45 time=108 ms
    64 bytes from 173.194.70.27: icmp_seq=12 ttl=45 time=109 ms
    64 bytes from 173.194.70.27: icmp_seq=13 ttl=45 time=108 ms
    64 bytes from 173.194.70.27: icmp_seq=14 ttl=45 time=108 ms
    64 bytes from 173.194.70.27: icmp_seq=15 ttl=45 time=108 ms
    64 bytes from 173.194.70.27: icmp_seq=16 ttl=45 time=109 ms
    64 bytes from 173.194.70.27: icmp_seq=17 ttl=45 time=108 ms
    64 bytes from 173.194.70.27: icmp_seq=18 ttl=45 time=108 ms
    64 bytes from 173.194.70.27: icmp_seq=19 ttl=45 time=108 ms
    64 bytes from 173.194.70.27: icmp_seq=20 ttl=45 time=109 ms
    .
    .
    .
    64 bytes from 173.194.70.27: icmp_seq=172 ttl=45 time=108 ms
    64 bytes from 173.194.70.27: icmp_seq=173 ttl=45 time=108 ms
    64 bytes from 173.194.70.27: icmp_seq=174 ttl=45 time=108 ms
    64 bytes from 173.194.70.27: icmp_seq=175 ttl=45 time=108 ms
    64 bytes from 173.194.70.27: icmp_seq=176 ttl=45 time=108 ms
    64 bytes from 173.194.70.27: icmp_seq=177 ttl=45 time=109 ms
    64 bytes from 173.194.70.27: icmp_seq=178 ttl=45 time=109 ms
    64 bytes from 173.194.70.27: icmp_seq=179 ttl=45 time=108 ms
    64 bytes from 173.194.70.27: icmp_seq=180 ttl=45 time=108 ms
    64 bytes from 173.194.70.27: icmp_seq=181 ttl=45 time=108 ms
    64 bytes from 173.194.70.27: icmp_seq=182 ttl=45 time=108 ms
    64 bytes from 173.194.70.27: icmp_seq=183 ttl=45 time=108 ms
    64 bytes from 173.194.70.27: icmp_seq=184 ttl=45 time=108 ms
    64 bytes from 173.194.70.27: icmp_seq=185 ttl=45 time=108 ms
    64 bytes from 173.194.70.27: icmp_seq=186 ttl=45 time=108 ms
    64 bytes from 173.194.70.27: icmp_seq=187 ttl=45 time=108 ms

    and running still now (near about 10 mins)
    do I force fully cutout SSH net connect ??
    or force fully off SSH ?? or WAIT ....

    Mon, 02/10/2014 - 08:24 (Reply to #21)
    matuog

    I forcefully close SSH for 'ping 173.194.70.27'
    as it is not stopping after 15mins
    install mtr and use 'mtr 173.194.70.27' and
    show following result (continuously changing values)

    My traceroute [v0.75]
    myhost.abcd.com (0.0.0.0) Mon Feb 10 08:56:38 2014
    Keys: Help Display mode Restart statistics Order of fields quit
    Packets Pings
    Host Loss% Snt Last Avg Best Wrst StDev
    1. 212.1.209.115 0.0% 235 0.1 0.1 0.0 3.8 0.3
    2. 208.69.231.9 0.0% 234 9.8 6.7 0.3 217.4 27.4
    3. 67.23.161.128 0.0% 234 7.5 3.4 0.3 165.5 17.5
    4. 67.23.161.142 0.0% 234 6.7 9.6 6.5 116.9 15.2
    5. aix.pr1.atl.google.com 0.0% 234 6.9 7.2 6.5 31.9 2.3
    6. 72.14.233.54 0.0% 234 6.8 12.7 6.8 45.7 9.1
    7. 66.249.94.22 0.0% 234 8.0 9.8 7.1 38.9 6.2
    8. 216.239.48.5 0.0% 234 13.9 15.8 13.7 52.0 4.9
    9. 72.14.235.13 0.0% 234 25.6 22.8 21.5 34.7 2.4
    10. 209.85.251.51 0.4% 234 100.8 100.6 99.4 117.2 2.9
    11. 72.14.235.14 0.0% 234 109.2 113.0 108.7 130.4 5.4
    12. 209.85.254.114 0.0% 234 108.7 110.8 108.6 157.8 6.5
    13. ???
    14. fa-in-f27.1e100.net 0.0% 234 109.5 110.2 109.4 123.4 1.8

    and when I try 'telnet 173.194.70.27 25' show

    [root@myhost ~]# telnet 173.194.70.27 25
    Trying 173.194.70.27...
    telnet: connect to address 173.194.70.27: Connection timed out

    "Namely, which server did you telnet to port 25 to previously, when it worked? "
    --->>> Unfortunately, I used my own server (VPS)
    'telnet abcd.com 25' (abcd.com is my own domain name)
    Sorry for the idiotic, I did ....

    "Giving placeholder IPs is not helpful when trying to debug stuff."
    --->>> I didn't understand what U mean to say ....

    Mon, 02/10/2014 - 08:17
    Locutus

    sigh please answer ALL my questions! This is getting nowhere.

    I repeat (last time): What server did U telnet to on port 25 when it worked? Giving placeholder IPs is not helpful when debugging stuff.

    To abort the ping, U of course just press CTRL-C, like U do 4 all shell commands that need to be aborted.

    Mon, 02/10/2014 - 08:33 (Reply to #23)
    matuog

    I forcefully aborted SSH for 'ping 173.194.70.27'
    as it is not stopping after 15mins

    install mtr and use 'mtr 173.194.70.27' and
    show following result (continuously changing values)

    My traceroute [v0.75]
    myhost.abcd.com (0.0.0.0) Mon Feb 10 08:56:38 2014
    Keys: Help Display mode Restart statistics Order of fields quit
    Packets Pings
    Host Loss% Snt Last Avg Best Wrst StDev
    1. 212.1.209.115 0.0% 235 0.1 0.1 0.0 3.8 0.3
    2. 208.69.231.9 0.0% 234 9.8 6.7 0.3 217.4 27.4
    3. 67.23.161.128 0.0% 234 7.5 3.4 0.3 165.5 17.5
    4. 67.23.161.142 0.0% 234 6.7 9.6 6.5 116.9 15.2
    5. aix.pr1.atl.google.com 0.0% 234 6.9 7.2 6.5 31.9 2.3
    6. 72.14.233.54 0.0% 234 6.8 12.7 6.8 45.7 9.1
    7. 66.249.94.22 0.0% 234 8.0 9.8 7.1 38.9 6.2
    8. 216.239.48.5 0.0% 234 13.9 15.8 13.7 52.0 4.9
    9. 72.14.235.13 0.0% 234 25.6 22.8 21.5 34.7 2.4
    10. 209.85.251.51 0.4% 234 100.8 100.6 99.4 117.2 2.9
    11. 72.14.235.14 0.0% 234 109.2 113.0 108.7 130.4 5.4
    12. 209.85.254.114 0.0% 234 108.7 110.8 108.6 157.8 6.5
    13. ???
    14. fa-in-f27.1e100.net 0.0% 234 109.5 110.2 109.4 123.4 1.8

    and when I try 'telnet 173.194.70.27 25' show

    [root@myhost ~]# telnet 173.194.70.27 25
    Trying 173.194.70.27...
    telnet: connect to address 173.194.70.27: Connection timed out

    "Namely, which server did you telnet to port 25 to previously, when it worked? "
    --->>> Unfortunately, I used my own server (VPS)
    'telnet abcd.com 25' (abcd.com is my own domain name)
    Sorry for the idiotic, I did ....

    "Giving placeholder IPs is not helpful when trying to debug stuff."
    --->>> I didn't understand what U mean to say ....

    Mon, 02/10/2014 - 08:46
    Locutus

    Okay, so the Google mailserver is reachable via ping, but port 25 connect fails. My assumption is, if you don't have a hardware firewall before your server, that your hoster is blocking port 25 outgoing for security reasons. You might want to ask them about this.

    To make sure it's not a local firewall issue, do this: iptables -L -n

    With "placeholder IPs" I meant writing "111.222.333.444" instead of the real IP. That's not helpful when trying to debug problems.

    Mon, 02/10/2014 - 09:27 (Reply to #25)
    matuog

    With "placeholder IPs" I meant writing "111.222.333.444" instead of the real IP. That's not helpful when trying to debug problems.
    --->>> 'YES' m assumption so but your guideline confirm me. THANKS

    To make sure it's not a local firewall issue, do this: iptables -L -n
    --->>> As per your direction, I did "iptables -L -n" and get following result

    [root@myhost ~]# iptables -L -n
    Chain INPUT (policy ACCEPT)
    target prot opt source destination
    fail2ban-SSH tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:22

    Chain FORWARD (policy ACCEPT)
    target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination

    Chain fail2ban-SSH (1 references)
    target prot opt source destination
    RETURN all -- 0.0.0.0/0 0.0.0.0/0

    ** I would like to inform U that I install 'fail2ban' as per security instruction
    of a Virtualmin / Webmin and VPS installation process description guideline
    Dose it effect something ??

    What I will do now, Sir ?? .... please help

    Mon, 02/10/2014 - 09:52 (Reply to #26)
    matuog

    I put the result of "iptables -L -n" ....
    What I will do now, Sir ?? ..... please help

    Mon, 02/10/2014 - 10:12
    Locutus

    Don't be impatient please. I do this in my spare time, and am thus not sitting here waiting for forum posts all day.

    So your iptables is not blocking anything. It's unlikely that fail2ban causes a problem -- since when it blocks something due to excessive login failures, it does so via iptables, and your iptables is "clean".

    I suggest you ask your hoster if they block outgoing port 25, since that's my assumption at this time.

    Mon, 02/10/2014 - 10:22 (Reply to #28)
    matuog

    When I post your reply, it show
    "What I will do now new"
    but when I refresh the page it only show
    "What I will do now "
    So I thought, my post may not displacing in the forum as new
    SORRY for that ....

    As m using VPS - they (VPS providers) first clearly surrender that they have nothing to do
    Is there anything I can do as alternative - like add / alter port 25 to another port
    If "YES" how can I do so .... PLEASE guide ? ?

    Mon, 02/10/2014 - 10:34
    Locutus

    Did you already ask your hoster? If they claim they don't block port 25, and your VPS also doesn't do so, then it must get blocked somewhere along the routing path. There's nothing really I can suggest at this point aside from asking your hoster for help. Something definitely is blocking port 25, but I can't do much remotely via the forum here.

    You do need access to outgoing port 25 if you want to deliver email to any external mail server. SMTP always connects to port 25 when talking to other mail servers, there's nothing you can do about that.

    I suggest you contact your hoster again and ask for advice. If nothing helps, you might want to switch to a different hoster.

    Mon, 02/10/2014 - 12:32 (Reply to #30)
    matuog

    Sir,

    They clearly inform that port 25 is block by them, they said "port 25 is currently blocked due to security reason, you can use an alternative port for your server."

    Is there really not any alternative way
    (because I don't have option for switch hoster as trial period already complete and they will not refund my money)

    Mon, 02/10/2014 - 12:38 (Reply to #31)
    andreychek

    There isn't a way to use an alternative port, unfortunately.

    Email runs on port 25.

    So in order to deliver email to another server, you would need to be able to access port 25 on the remote mail server.

    You may want to ask your provider how they would recommend you send emails to other servers, they may have a way for you to do that.

    However, if they also block incoming email, there's not really going to be a way around that -- if your provider blocks incoming email, that means you will not be able to receive email from other servers on the Internet.

    -Eric

    Mon, 02/10/2014 - 12:51 (Reply to #32)
    matuog

    "You may want to ask your provider how they would recommend you send emails to other servers, they may have a way for you to do that."
    -->> They suggest me to use another port for that.
    Is there any parallel port that we can for email ??
    (Sorry for the stupid question I ask, as U already said "Email runs on port 25")

    "However, if they also block incoming email, . . . . . . "
    -->> No, however they did not block incoming email as I received emails for external public mail server like yahoo or gmail to my Virtualmin / Webmin mail server

    Mon, 02/10/2014 - 13:07 (Reply to #33)
    andreychek

    Sorry, but there isn't an alternate port you can use. Email runs on port 25.

    In order for your server to send email, your provider can't block port 25, or would need to provide you with some sort of alternate way of sending email via port 25 (such as allowing you to relay it through them).

    You really may want to consider a provider that does not block port 25, if you want your server to be able to send email to other servers on the Internet.

    -Eric

    Mon, 02/10/2014 - 11:24
    andreychek

    Howdy,

    I agree with Locutus -- port 25 is definitely being blocked.

    Usually, when seeing the symptoms you've shared above -- that is something the hosting provider (ie, your VPS provider) is doing.

    I don't see a configuration problem on your server though.

    If your VPS provider isn't blocking port 25, that means someone else is -- though it's difficult to determine who that might be.

    However, my suspicion is that it really is your hosting provider.

    -Eric

    Mon, 02/10/2014 - 11:59
    Locutus

    Thanks Eric. ;)

    Mon, 02/10/2014 - 12:04
    matuog

    Thanks to both of U for replying and guideline ( specially to "Locutus" )

    I have already post in my hosting provider's forum and rise a ticket ...
    as soon as they reply, I must inform U . . . . . .

    Mon, 02/10/2014 - 14:08
    Locutus

    @matuog: Yes, like Eric said, if you want your Postfix to deliver outgoing emails directly to their destination, it is imperative that you have your hoster unblock port 25 for you. If they refuse to do that, there's two options:

    1. Switch to another hoster that's not as retarded as your present one
    2. Get an account on an external email service that allows you to pipe your mail through them on port 576 ("submission"), that's called a "smarthost". You can configure Postfix to use that.

    I'd prefer option 1. Using a smarthost has some implications, i.e. you'd maybe be responsible for all emails going through it, since it's being authenticated with your account at the smarthost.

    Mon, 02/10/2014 - 23:25 (Reply to #38)
    matuog

    Sir,

    Can U please give me a little more describe of "external email service".
    How or where do I can configure or get it ??

    Is "external email service" means do I have to purchase it from
    another service provider like I purchase the hosting or domain ?

    If I can use Virtualmin / Webmin 'port 25' then m also responsible for all emails
    going through it, then what is the special problem with "external email service".
    Because if I purchase or configure "external email service" it will be mine only ---
    m I right, what I said above ?? (may be I ask a stupid question . . . . . SORRY)

    I try to communicate with my hosting provider for open port 25 for emails
    but they can't take hosting and refund me, if they don't open port 25.

    (May be m going to ask U another stupid question, as m not good at
    web configure) Like Virtualmin / Webmin all other web controllers like
    cPanel WHM, Pleask, ISP Config all use port 25 and port 110 for
    outgoing and incoming emails or different ports for emails??

    Tue, 02/11/2014 - 04:24
    Locutus

    "External mail service": Yes, you'd google for providers that offer "smarthost" services, i.e. that will let you send outgoing email not only for yourself but also for customers through them. I can't recommend any here, it's been ages since I last used a smarthost.

    "Responsible": Well, it might be a legal thing and depend on the terms and conditions of the smarthost provider. If you operate a server which sends email directly, things might look different in terms of who's responsible for emails than when you authenticate with your credentials to a smarthost. Just a guess though.

    In general, you should very much prefer the option to switch to a different hoster. Seriously, a hoster who offers you to run a server, and who then says "we don't allow outgoing port 25, use a different port" is not something you want as your service provider. That's as stupid as a car dealer who say "we don't allow a driver's door, you need to get in and out of your car through the co-driver's door".

    "Port 25": Yes, all across the Internet, port 25 is used for SMTP, no matter what server software or control panel an admin chooses to use. Official port numbers are regulated by Internet authorities, not by the software someone uses.

    Tue, 02/11/2014 - 07:50 (Reply to #40)
    matuog

    They reply me as follows

    What you can do is use a separate mail relay system such as Amazon SES. This will allow you to send email from your VPS using a different email service. Here is a guide on how to set this up if you are using the mail service Postfix: http://mhawthorne.net/posts/postfix-configuring-gmail-as-relay.html

    What should I do now ...... Please help and guide me ...

    Tue, 02/11/2014 - 08:58
    andreychek

    Howdy,

    It looks like your provider sent you a guide with how to do what you're asking.

    If you want to stick with this particular provider, you could try following the steps they sent you in order to use a mail relay service.

    -Eric

    Tue, 02/11/2014 - 10:27
    Locutus

    I agree with Eric. We can't guide you through this really. Either you switch to a different provider, or follow the instructions they sent you.

    Tue, 02/11/2014 - 12:47
    matuog

    Sir,

    Unfortunately, they (my hosting provider) guide me one of the Virtualmin post,
    most of which is guided and replied by Eric and solved it.
    So I hope U two may guide me and help me to solve my problem(s) too.
    They said :-
    "
    Hello Goutam,
    I believe the link below will help you solve your problem.
    http://www.virtualmin.com/node/7974
    "
    As I told that I already covered trial period of the hoster by learning and solving problems in Virtualmin setup and they can't refund me now, so I get trapped with them else I have to spend double bucks for another hoster (I know, that's my problem); so I still pleaded for help to U guys because U already helped them.

    Anyway, lots of thanks for the helps and guidelines U guys gave me.

    Tue, 02/11/2014 - 13:50
    Locutus

    I'm not really sure what guidance you need, the post you linked to explains everything you need. You need to sign up with a smarthost provider (which probably will also cost you additional money, so you might want to re-think the hoster switch!) and enter their data as per Eric's post.

    Sorry, I can't give you any further help on this for free, I can only devote so much spare time to helping people without compensation.

    Topic locked