HELP SMTP / Where to find some specific smtp data

6 posts / 0 new
Last post
#1 Mon, 04/15/2013 - 15:31
allardsmol

HELP SMTP / Where to find some specific smtp data

Hello!

I have an php application which need 4 different pieces of info to send mail.

SMTP server address
SMTP server port
SMTP username
SMTP password

I am a newbie on setting up server email, for this reason my questions ;-)

Where can I find these for a specific mail address.

SMTP server address: does this need to be an ipp address or domain name?
SMTP server port the firewall only say smtp but no specific portnumber SMTP username Where can I find this? SMTP password Where can I find this?

Thanks a lot for your help!

Mon, 04/15/2013 - 16:56
andreychek

Howdy,

The server address can be an IP address or domain name... what you use doesn't matter, it simply needs to point at your the correct server.

Regarding the other info -- that all depends on what server you plan on using. Do you plan on using your own Virtualmin server? Or were you going to send the email using a remote server, such as an ISP's mail server?

-Eric

Mon, 04/15/2013 - 18:05
allardsmol

Hello Eric,

Thanks for your fast reply! I could find the info after making an mailbox. the data was send to my email address. I tested but the mail is send but did not arrive.

Here is log file and as you can see in the middle, it is disconnected. So something is wrong but what? I hope you can help!

Thanks a lot in advance Eric!

Apr 16 00:36:10 host postfix/smtpd[xxxx]: connect from host1.xxxxxx.xx[xx.xx.xx.xx.]
Apr 16 00:36:10 host postfix/smtpd[xxxx]: DSD4SAD7D: client=host.xxxxxxx.xx[xx.xx.xx.xx], sasl_method=LOGIN, sasl_username=xx.xxxxxxx
Apr 16 00:36:10 host postfix/cleanup[xxx]: DSD4SAD7D: message-id=<45454125556696.DSD4SAD7D@host.xxxxxx.xx>
Apr 16 00:36:10 host postfix/qmgr[xxxx]: DSD4SAD7D: from=<xxx@xxxxxx.xx>, size=5215, nrcpt=1 (queue active)

Apr 16 00:36:10 host postfix/smtpd[xxxx]: disconnect from host.xxxxxx.xx[xx.xx.xx.xx]

Apr 16 00:36:11 host postfix/smtp[xxxx]: DSD4SAD7D: to=<xxxxxxxx@gmail.com>, relay=gmail-smtp-in.l.google.com[xxx.xx.xx.x]:25, delay=0.45, delays=0.11/0.01/0.11/0.22, dsn=2.0.0, status=sent (250 2.0.0 OK xxxxxxx1 xxxxxxxx.82 - gsmtp)
Apr 16 00:36:11 host postfix/qmgr[6287]:DSD4SAD7D: removed
Mon, 04/15/2013 - 18:57
allardsmol

Hello Eric, Some updates. I enabled port 25 in the firewall and even disabled the ufw firewall. (I use 2 firewalls). But no result. The mail is still not arriving to its destination. Anyway in the syslog also something is wrong:

host.xxxxxxxxxx.xx[xxx.xx.xxx.xx]
Apr 16 01:46:04 host named[54741]: client 127.0.0.1#12417: query (cache) 'gmail.com/MX/IN' denied
Apr 16 01:46:04 host named[54741]: client 127.0.0.1#12423: query (cache) 'gmail-smtp-in.l.google.com/A/IN' denied
Apr 16 01:46:04 host1 named[54741]: client 127.0.0.1#12418: query (cache) 'gmail-smtp-in.l.google.com/AAAA/IN' denied
Apr 16 01:46:04 host1 named[54741]: client 127.0.0.1#12418: query (cache) 'alt1.gmail-smtp-in.l.google.com/A/IN' denied
Apr 16 01:46:04 host1 named[54741]: client 127.0.0.1#124186: query (cache) 'alt1.gmail-smtp-in.l.google.com/AAAA/IN' denied
Apr 16 01:46:04 host1 named[54741]: client 127.0.0.1#12418: query (cache) 'alt2.gmail-smtp-in.l.google.com/A/IN' denied
Apr 16 01:46:04 host1 named[54741]: client 127.0.0.1#12418: query (cache) 'alt2.gmail-smtp-in.l.google.com/AAAA/IN' denied
Apr 16 01:46:04 host1 named[54741]: client 127.0.0.1#12418: query (cache) 'alt3.gmail-smtp-in.l.google.com/A/IN' denied
Apr 16 01:46:04 host1 named[54741]: client 127.0.0.1#12418: query (cache) 'alt3.gmail-smtp-in.l.google.com/AAAA/IN' denied
Apr 16 01:46:04 host1 named[54741]: client 127.0.0.1#12418: query (cache) 'alt4.gmail-smtp-in.l.google.com/A/IN' denied
Apr 16 01:46:04 host1 named[54741]: client 127.0.0.1#12418: query (cache) 'alt4.gmail-smtp-in.l.google.com/AAAA/IN' denied

It is getting complicated :-( I hope you can make something of these logs....

Thanks in advance Eric!

Wed, 04/17/2013 - 09:34
andreychek

Howdy,

Hmm, two comments up, you shared your email logs... and in there appears to be a message that was successfully sent to Gmail.

Is it possible that the message ended up in your spam folder at Gmail?

-Eric

Wed, 04/17/2013 - 16:39
allardsmol

Hello Eric,

Indeed the mails where hidden in the spambox. I will make a new seperate post for this problem.

Thanks Eric, you are great!

Topic locked