[SOLVED] Sendmail delays email delivery in Internal network mode ?
Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Sendmail delays email delivery in Internal network mode ?
I am facing a weird issue and i am not sure about why it is happening and having a hard time to understand it. I have a RHEL VM and i have installed Sendmail on it. I compiled and installed Sendmail from source and running it with default installation, i have not made any changes in any of the configs. I am trying to send email to localhost only, now the problem is when the network mode for Vm guest OS is "Bridged" with a dhcp ip the email is delivered instantly without any delay. However when the network mode is "Internal Network" with a manually assigned IP the email delay of approx 3 minutes occurs. So can anyone let me know why the delay occurs when machine is "Internal network" mode.
This is driving me nuts
Here are the logs confirming that delay
Code:
Jun 22 21:03:07 test sendmail[2119]: q5N133lp002119: from=rohit, size=9, class=0, nrcpts=1, msgid=<201206230103.q5N133lp002119@test.home.com>, relay=root@localhost
Jun 22 21:05:55 test sm-mta[2120]: q5N137CR002120: from=<rohit@test.home.com>, size=263, class=0, nrcpts=1, msgid=<201206230103.q5N133lp002119@test.home.com>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Jun 22 21:05:55 test sendmail[2119]: q5N133lp002119: to=stu, ctladdr=rohit (502/505), delay=00:02:52, xdelay=00:02:48, mailer=relay, pri=30009, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (q5N137CR002120 Message accepted for delivery)
Jun 22 21:05:55 test sm-mta[2220]: q5N137CR002120: to=<stu@test.home.com>, ctladdr=<rohit@test.home.com> (502/505), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30449, dsn=2.0.0, stat=Sent
So could any one suggest what could be the issue. Please let me know if you would need any information from me to diagnose the issue better.
If this is Solved as you marked it can you please post what your solution was? It helps others with similar problems in future.
Well what i did was to set up a dhcp server in vbox for an internal network and then use that internal network to get dhcp assigned ips to the guest. After that the IP was assigned to the guest from vbox dhcp and still in Internal Network mode email was being delivered without a delay. But i still was not able to understand that why it was not working when i was using static IP.
Let me know if that helps or if anyone has any better solution please do let me know.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.