ispCP - Board - Support
Emails not reaching hotmail. - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: Emails not reaching hotmail. (/thread-2618.html)

Pages: 1 2 3


Emails not reaching hotmail. - prale - 03-02-2008 10:16 PM

It took me a while to figure out I had to configure $mydomain and $myhostname with "mail." in front of it.
Otherwise I can't send/recieve emails proper.

Now it works, but hotmail isn't getting my emails.
I googled and tried a lot, but nothing helps.
Here is my config:

Code:
# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_at_myorigin = yes
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = amavis:[127.0.0.1]:10024
daemon_directory = /usr/lib/postfix
inet_interfaces = all
local_destination_recipient_limit = 1
local_recipient_maps = unix:passwd.byname $alias_database
local_transport = local
mail_spool_directory = /var/mail
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = $myhostname, $mydomain
mydomain = mail.sub.domain.net.local
myhostname = mail.sub.domain.net
mynetworks_style = host
myorigin = $myhostname
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP
smtpd_data_restrictions = reject_multi_recipient_bounce,                                                                                                            reject_unauth_pipelining
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks,                               permi                                                                             t_sasl_authenticated,                               reject_invalid_helo_hostname                                                                             ,                               reject_non_fqdn_helo_hostname
smtpd_recipient_restrictions = reject_non_fqdn_recipient,                                                                                                            reject_unknown_recipient_domain,                               permit_my                                                                             networks,                               permit_sasl_authenticated,                                                                                                            reject_unauth_destination,                               reject                                                                             _unlisted_recipient,                               check_policy_service inet:127                                                                             .0.0.1:12525,                               check_policy_service inet:127.0.0.1:                                                                             60000,                               permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous, noplaintext
smtpd_sender_restrictions = reject_non_fqdn_sender,                                                                                                            reject_unknown_sender_domain,                               permit_mynetworks,                                                                                                            permit_sasl_authenticated
transport_maps = hash:/etc/postfix/ispcp/transport
virtual_alias_maps = hash:/etc/postfix/ispcp/aliases
virtual_gid_maps = static:8
virtual_mailbox_base = /var/mail/virtual
virtual_mailbox_domains = hash:/etc/postfix/ispcp/domains
virtual_mailbox_limit = 0
virtual_mailbox_maps = hash:/etc/postfix/ispcp/mailboxes
virtual_minimum_uid = 1001
virtual_transport = virtual
virtual_uid_maps = static:1001

Code:
# vi /etc/ispcp/bind/parts/db_e.tpl
$TTL 12H
$ORIGIN {DMN_NAME}.
@               IN              SOA             ns1.{DMN_NAME}. postmaster.{DMN_NAME}. (
; dmn [{DMN_NAME}] timestamp entry BEGIN.
                {TIMESTAMP}     ; Serial
; dmn [{DMN_NAME}] timestamp entry END.
                8H              ; Refresh
                15M             ; Retry
                4W              ; Expire
                3H              ; Minimum TTL
)
                IN              NS              ns1.{DMN_NAME}.
                IN              NS              ns2.{DMN_NAME}.
                IN              MX      10      mail.{DMN_NAME}.

{DMN_NAME}.     IN              A               {DMN_IP}
www             IN              A               {DMN_IP}
{DMN_NAME}.     IN              TXT             "v=spf1 a mx ip4:{DMN_IP} ~all"
localhost       IN              A               127.0.0.1
mail            IN              A               {BASE_SERVER_IP}
ns1             IN              A               {BASE_SERVER_IP}
ns2             IN              A               {SECONDARY_DNS_IP}
; CNAME for mail transfer
imap            IN              CNAME           mail
pop             IN              CNAME           mail
pop3            IN              CNAME           mail
relay           IN              CNAME           mail
smtp            IN              CNAME           mail
; CNAME for web transfer
ftp             IN              CNAME           www
; sub [{SUB_NAME}] entry BEGIN.
; sub [{SUB_NAME}] entry END.
~

Thanks already, I hope someone can help me out.


RE: Emails not reaching hotmail. - prale - 03-02-2008 10:31 PM

Also I see multiple postfix config files?

/etc/ispcp/postfix/main.cf

/etc/postfix/main.cf
(I modified and posted this last one above)


RE: Emails not reaching hotmail. - BeNe - 03-02-2008 11:25 PM

Quote:Now it works, but hotmail isn't getting my emails.
Can you please post this Hotmailpart from your mail.log/info/err here ?
You are not the first with that Problem. Please use also the search here
in the Forum.

Greez BeNe


RE: Emails not reaching hotmail. - Rene - 03-02-2008 11:46 PM

Code:
mydomain = mail.sub.domain.net.local
myhostname = mail.sub.domain.net

do you change this for this post?


RE: Emails not reaching hotmail. - prale - 03-02-2008 11:51 PM

Code:
Mar  2 14:25:09 *subdomain* postfix/master[14862]: terminating on signal 15
Mar  2 14:25:10 *subdomain* postfix/master[15311]: daemon started -- version 2.3.8, configuration /etc/postfix
Mar  2 14:25:59 *subdomain* postfix/pickup[15316]: E0C635BC785: uid=2001 from=<webmaster@usedclientsitedomain.com>
Mar  2 14:25:59 *subdomain* postfix/cleanup[15324]: E0C635BC785: message-id=<20080302132559.E0C635BC785@mail.sub.domain.net>
Mar  2 14:25:59 *subdomain* postfix/qmgr[15317]: E0C635BC785: from=<webmaster@usedclientsitedomain.com>, size=2668, nrcpt=1 (queue active)
Mar  2 14:26:00 *subdomain* postfix/smtpd[15328]: connect from sub.domain.net.local[127.0.0.1]
Mar  2 14:26:00 *subdomain* postfix/smtpd[15328]: 4D8AC5BC784: client=sub.domain.net.local[127.0.0.1]
Mar  2 14:26:00 *subdomain* postfix/cleanup[15324]: 4D8AC5BC784: message-id=<20080302132559.E0C635BC785@mail.sub.domain.net>
Mar  2 14:26:00 *subdomain* postfix/qmgr[15317]: 4D8AC5BC784: from=<webmaster@usedclientsitedomain.com>, size=3083, nrcpt=1 (queue active)
Mar  2 14:26:00 *subdomain* amavis[16364]: (16364-06) Passed CLEAN, <webmaster@usedclientsitedomain.com> -> <reciever@hotmail.com>, Message-ID: <20080302132559.E0C635BC785@mail.sub.domain.net>, Hits: -, 431 ms
Mar  2 14:26:00 *subdomain* postfix/smtpd[15328]: disconnect from sub.domain.net.local[127.0.0.1]
Mar  2 14:26:00 *subdomain* postfix/smtp[15326]: E0C635BC785: to=<receiver@hotmail.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.55, delays=0.07/0.03/0.01/0.44, dsn=2.6.0, status=sent (250 2.6.0 Ok, id=16364-06, from MTA: 250 2.0.0 Ok: queued as 4D8AC5BC784)
Mar  2 14:26:00 *subdomain* postfix/qmgr[15317]: E0C635BC785: removed
Mar  2 14:26:03 *subdomain* postfix/smtp[15329]: 4D8AC5BC784: to=<receiver@hotmail.com>, relay=mx2.hotmail.com[65.54.245.40]:25, delay=3.4, delays=0.06/0.02/0.67/2.7, dsn=2.0.0, status=sent (250  <20080302132559.E0C635BC785@mail.sub.domain.net> Queued mail for delivery)
Mar  2 14:26:03 *subdomain* postfix/qmgr[15317]: 4D8AC5BC784: removed

----------------------------------------------------------------
I found a workaround, that I'm willing to try.
Only I don't know a SMTP server to use, because I believe this workaround just sends all emails to hotmail using an external smtp server?

Postfix workaround:
Create a new file named: /etc/postfix/transportmappings and add the following line to this file:
Quote:hotmail.com smtp:<name SMTP server>

Convert it to a db-database:
Quote:postmap /etc/postfix/transportmappings

Add this to /etc/postfix/main.cf:
Quote:relayhost =
transport_maps = hash:/etc/postfix/transportmappings

Restart postfix:
Quote:/etc/init.d/postfix restart

Suitable for a Debian installation.


RE: Emails not reaching hotmail. - prale - 03-02-2008 11:52 PM

Rene Wrote:
Code:
mydomain = mail.sub.domain.net.local
myhostname = mail.sub.domain.net

do you change this for this post?

Yes, I changed all domain values, for google etc.


RE: Emails not reaching hotmail. - Rene - 03-03-2008 12:19 AM

can you solve your hostname? ist your hostname on a blacklist?
can you send an email with a status report (e.g. with outlook)?


RE: Emails not reaching hotmail. - BeNe - 03-03-2008 12:25 AM

Code:
Mar  2 14:26:03 *subdomain* postfix/smtp[15329]: 4D8AC5BC784: to=<receiver@hotmail.com>, relay=mx2.hotmail.com[65.54.245.40]:25, delay=3.4, delays=0.06/0.02/0.67/2.7, dsn=2.0.0, status=sent (250  <20080302132559.E0C635BC785@mail.sub.domain.net> Queued mail for delivery)
Mar  2 14:26:03 *subdomain* postfix/qmgr[15317]: 4D8AC5BC784: removed

But this looks OK --> status=sent Rolleyes
Nothing in the SPAM Folder ?

Greez BeNe


RE: Emails not reaching hotmail. - prale - 03-03-2008 12:34 AM

No nothing in the spam folder.

I noticed in the logs that amavis is trying to mail to:
amavis@mail.sub.domain.net

I have only a email account on @sub.domain.com

I changed:
myhostname = mail.sub.domain.net
mydomain = mail.sub.domain.net.local

to:
myhostname = mail.sub.domain.net
mydomain = sub.domain.net.local

Since that also seems to work.
(If myhostname not starts with "mail." I get a returned to sender email when emailing to one of my email accounts)

Hopefully I recieve the amavis mails now @sub.domain.com


RE: Emails not reaching hotmail. - prale - 03-03-2008 12:38 AM

Also the workaround doesn't seems to work.
Or I use a wrong smtp adress.