LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   Sendmail delays email delivery in Internal network mode ? (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/sendmail-delays-email-delivery-in-internal-network-mode-4175413366/)

Rohit_4739 06-25-2012 09:43 PM

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.

MensaWater 06-28-2012 08:19 AM

If this is Solved as you marked it can you please post what your solution was? It helps others with similar problems in future.

Rohit_4739 06-28-2012 08:25 AM

Quote:

Originally Posted by MensaWater (Post 4714104)
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.


All times are GMT -5. The time now is 08:47 AM.