473,836 Members | 1,598 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to auto detect a remote IMAP/POP3 server given only an emailaddress ?

mp-
I want to be able to allow people to check their email from my PHP
online application.

Given only the users 1) email address, 2) username (if applicable) and
3) password - how can I auto detect a remote IMAP/POP3 server so that
I can connect and fetch mail for the user. (Ultimately, I don't want
users to have to know what the IMAP/POP3 server name / port is .... I
would like to auto-detect all of that).

At first I thought I could use "getmxrr" but quickly realized that is
only good for determining the SMTP server.

If anyone has ever "add account" in Gmail Preferences, it's
essentially the exact same functionality where Gmail auto-detects the
IMAP/POP3 server.

Any help will be greatly appreciated.

Dec 28 '07
11 10757
mp- wrote:
On Dec 28, 5:56 pm, Iv�n S�nchez Ortega <ivansanchez-...@rroba-
escomposlinux.-.punto.-.orgwrote:
>The Natural Philosopher wrote:
>>take the domain part of their address and try looking for MX, then A
records..an d hope their ISP doesn't have a relay in the way..
... And do a port scan on pop3.domain, and imap.domain, and do keep a
whitelist of known domains and servers (together with a manual way of
adding a domain+server to that whitelist).

--
----------------------------------
Iv�n S�nchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

Why was God able to create the universe in only seven days? Because he
didn't have an installed base to deal with.

Doing a port scan on imap.domain.com , pop.domain.com, etc.. just seems
like taking an educated guess as to what the IMAP/POP3 server name
is.

Does a DNS record exist describing the hostname for a particular
domains IMAP/POP3 servers? It seems that the MX record is only for
SMTP - which doesn't necessarily mean IMAP/POP3 is on that same
machine.
MX is the target for publically recievable mail. It may, or may not be,
on the same machine.
For small domains it usually is.
Dec 29 '07 #11
On 28 Dec, 17:19, mp- <miche...@gmail .comwrote:
I want to be able to allow people to check their email from my PHP
online application.

Given only the users 1) email address, 2) username (if applicable) and
3) password - how can I auto detect a remote IMAP/POP3 server so that
I can connect and fetch mail for the user. (Ultimately, I don't want
users to have to know what the IMAP/POP3 server name / port is .... I
would like to auto-detect all of that).

At first I thought I could use "getmxrr" but quickly realized that is
only good for determining the SMTP server.

If anyone has ever "add account" in Gmail Preferences, it's
essentially the exact same functionality where Gmail auto-detects the
IMAP/POP3 server.

Any help will be greatly appreciated.
You can't.

You can guess at what the name might be (see Ivn Snchez Ortega's
response).

Even if you know the name, it doesn't necessarily follow that the
service is accessible via the internet - many ISPs will firewall
access to their own IP addresses.

C.
Dec 30 '07 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1939
by: Alexander Schumann | last post by:
Hello everyone, We are building a new web based e-mail client "Fiezel" that will support IMAP, POP3 and SMTP protocols. Will be written in php4. I am trying to collect all the infomation on SNMP I can get and any other protocols like POP3 infomation for desinging and developing for php4. I have also collected the infomation wish I will try to support: RFC2821: Simple Mail Transfer Protocol (SMTP) RFC2822: Standard for ARPA internet...
5
4627
by: F. GEIGER | last post by:
Hi all! As I saw Alex Martelli's post about a mbox cleaner based on POP3, I thought, it could be possible to do that based on IMAP too. That way I could ask the server for mails having attached EXE files and delete all those mails on the server. This would save me a lot of traffic over my phone line connection. But I'm missing one important thing: How do I get the server to tell me about attachments.
1
2328
by: !TG | last post by:
I'm looking for something that should be simple. What I want to do it just connect to an IMAP or POP server and see how many unread messages there are and display that number. Does anyone know how to do this?
3
2193
by: chirag | last post by:
i want a IMAP server for windows so that i can retrive incoming mails. I use mssql server to store user information. i need IMAP server to develop project i.e mail system can any body sent me IMAP server.
2
2835
by: Mike Brearley | last post by:
I need to write a script that will check a catch-all mailbox (pop3) and send a non delivery report back to the sender of the email. Background info: I have a domain hosted on a site that offers unlimited email accounts... the problem is, emails sent to an invalid address on the domain aren't automatically returned as non-deliverable. I am, however, able to set up a catch-all address and able to pick up those emails. Id like to set up a...
3
1835
by: Richard Thornley | last post by:
Hello, I was just been given a project and I have some questions on how to accomplish the first part of the task. If a user sends an email to a specific email address I need to detect that
1
1614
by: Trevor | last post by:
In the PHP manual (http://us3.php.net/imap) it reads: >LIX. IMAP, POP3 and NNTP Functions >Introduction > >These functions are not limited to the IMAP protocol, despite their name. The underlying >c-client library also supports NNTP, POP3 and local mailbox access methods. Can someone tell me where to go to find out how these functions work in relation to POP3?
0
1485
by: Christian Hofmann | last post by:
Hello, I am looking for a smtp/imap/pop3-component to build an own mailserver. I searched all the web but the onliest I found were complete mailservers or components to fetch mails via pop3/imap or deliver mails via smtp. Where can I find such components/classes for dotnet. I want to build a windows mailserver that stores all the mails and data in my postgresql-database. I found no mailserver that could do that. Maybe if
1
2940
by: CodeSeeker | last post by:
I have an application, which uses pop3 to read the messages from the mailbox, and it has been working fine for so many year. We recently have started changing this application to use java mail IMAP 4 instead of Pop3. Primary reason for that :- Is we want to better meet out SLA, so we have decided to go with the 2 instances of this application, and hence decided to use IMAP4 to concurrently accessing the mailboxes via IMAP4. My issues:- Now...
0
9671
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10852
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10553
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10255
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7793
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5651
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4459
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4021
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3116
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.