LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-09-2012, 04:05 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
postfix can't receive mails but can send mails


Hi all,

Server on VM, OS - Ubuntu 1004 server 64bit
Host - Ubuntu 11.04 desktop 64bit
Orcle VirtualBox

I followed;
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 11.10)
http://www.howtoforge.com/virtual-us...l-ubuntu-11.10

to build this server which will serve multiple domains. It can send mail but unables to receive mail.


$ tail /var/log/mail.log
Code:
Feb  9 10:04:43 ub1004ser02 postfix/qmgr[1809]: 3B0C0A009A: from=<somebody@yahoo.com>, size=2966, nrcpt=1 (queue active)
Feb  9 10:04:43 ub1004ser02 postfix/smtp[1880]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Feb  9 10:04:43 ub1004ser02 postfix/smtp[1880]: 3B0C0A009A: to=<sales@mydomain.com>, relay=none, delay=1136, delays=1136/0/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
Feb  9 10:04:43 ub1004ser02 postfix/smtpd[1872]: connect from e-bs.regit.ru[91.190.232.8]
Feb  9 10:04:44 ub1004ser02 postfix/smtpd[1872]: NOQUEUE: reject: RCPT from e-bs.regit.ru[91.190.232.8]: 550 5.1.1 <mail@mydomain.com>: Recipient address rejected: User unknown in virtual mailbox table; from=<labelling@kneeplace.com> to=<mail@mydomain.com> proto=SMTP helo=<e-bs.regit.ru>
Feb  9 10:04:44 ub1004ser02 postfix/smtpd[1872]: lost connection after RCPT from e-bs.regit.ru[91.190.232.8]
Feb  9 10:04:44 ub1004ser02 postfix/smtpd[1872]: disconnect from e-bs.regit.ru[91.190.232.8]
Feb  9 10:08:04 ub1004ser02 postfix/anvil[1875]: statistics: max connection rate 1/60s for (smtp:206.72.127.11) at Feb  9 10:03:37
Feb  9 10:08:04 ub1004ser02 postfix/anvil[1875]: statistics: max connection count 1 for (smtp:206.72.127.11) at Feb  9 10:03:37
Feb  9 10:08:04 ub1004ser02 postfix/anvil[1875]: statistics: max cache size 1 at Feb  9 10:03:37

On server VM terminal
=====================
$ dig mail.mydomain.com
Code:
; <<>> DiG 9.7.0-P1 <<>> mail.mydomain.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 33735
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;mail.mydomain.com.              IN      A

;; AUTHORITY SECTION:
mydomain.com.            3599    IN      SOA     ns25.domaincontrol.com. dns.jomax.net. 2012020704 28800 7200 604800 3600

;; Query time: 19 msec
;; SERVER: 202.14.67.4#53(202.14.67.4) (ISP DNS)
;; WHEN: Thu Feb  9 10:16:27 2012
;; MSG SIZE  rcvd: 102

On host terminal
================

$ dig mail.mydomain.com
Code:
; <<>> DiG 9.7.3 <<>> mail.mydomain.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 49391
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;mail.mydomain.com.		IN	A

;; AUTHORITY SECTION:
mydomain.com.		3510	IN	SOA	ns25.domaincontrol.com. dns.jomax.net. 2012020704 28800 7200 604800 3600

;; Query time: 18 msec
;; SERVER: 202.14.67.4#53(202.14.67.4) (ISP DNS)
;; WHEN: Thu Feb  9 10:17:56 2012
;; MSG SIZE  rcvd: 102
$ nslookup xxx.xxx.xxx.xxx (fixed IP)
Code:
Server:         xxx.xxx.xxx.xxx (ISP DNS)
Address:        xxx.xxx.xxx.xxx #53 (ISP DNS)

** server can't find 178.213.232.220.in-addr.arpa.: NXDOMAIN
Bind9 is not installed. I'm running ISP DNS

Pls help. TIA

B.R.
satimis
 
Old 02-09-2012, 04:46 AM   #2
fritz001
Member
 
Registered: Aug 2004
Posts: 176

Rep: Reputation: 18
Quote:
Originally Posted by satimis View Post
Hi all,

Server on VM, OS - Ubuntu 1004 server 64bit
Host - Ubuntu 11.04 desktop 64bit
Orcle VirtualBox

I followed;
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 11.10)
http://www.howtoforge.com/virtual-us...l-ubuntu-11.10

to build this server which will serve multiple domains. It can send mail but unables to receive mail.


$ tail /var/log/mail.log
Code:
Feb  9 10:04:43 ub1004ser02 postfix/qmgr[1809]: 3B0C0A009A: from=<somebody@yahoo.com>, size=2966, nrcpt=1 (queue active)
Feb  9 10:04:43 ub1004ser02 postfix/smtp[1880]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Feb  9 10:04:43 ub1004ser02 postfix/smtp[1880]: 3B0C0A009A: to=<sales@mydomain.com>, relay=none, delay=1136, delays=1136/0/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
Feb  9 10:04:43 ub1004ser02 postfix/smtpd[1872]: connect from e-bs.regit.ru[91.190.232.8]
Feb  9 10:04:44 ub1004ser02 postfix/smtpd[1872]: NOQUEUE: reject: RCPT from e-bs.regit.ru[91.190.232.8]: 550 5.1.1 <mail@mydomain.com>: Recipient address rejected: User unknown in virtual mailbox table; from=<labelling@kneeplace.com> to=<mail@mydomain.com> proto=SMTP helo=<e-bs.regit.ru>
Feb  9 10:04:44 ub1004ser02 postfix/smtpd[1872]: lost connection after RCPT from e-bs.regit.ru[91.190.232.8]
Feb  9 10:04:44 ub1004ser02 postfix/smtpd[1872]: disconnect from e-bs.regit.ru[91.190.232.8]
Feb  9 10:08:04 ub1004ser02 postfix/anvil[1875]: statistics: max connection rate 1/60s for (smtp:206.72.127.11) at Feb  9 10:03:37
Feb  9 10:08:04 ub1004ser02 postfix/anvil[1875]: statistics: max connection count 1 for (smtp:206.72.127.11) at Feb  9 10:03:37
Feb  9 10:08:04 ub1004ser02 postfix/anvil[1875]: statistics: max cache size 1 at Feb  9 10:03:37

On server VM terminal
=====================
$ dig mail.mydomain.com[code]

; <<>> DiG 9.7.0-P1 <<>> mail.mydomain.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 33735
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;mail.mydomain.com. IN A

;; AUTHORITY SECTION:
mydomain.com. 3599 IN SOA ns25.domaincontrol.com. dns.jomax.net. 2012020704 28800 7200 604800 3600

;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1605 <-- look here for status

;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 4


;; QUESTION SECTION:

;www.mydomain.com. IN A



;; ANSWER SECTION:

www.mydomain.com. 54 IN A _IP_ <-- the answer


create your own dns
 
Old 02-09-2012, 05:09 AM   #3
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Postfix is a smtp server and is used to send mails and if you are unable to receive mails configure a dovecot server for pop3 and imap


secondly your DNS is not replying to mail.mydomain so check your DNS.
 
Old 02-09-2012, 05:30 AM   #4
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by fritz001 View Post
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1605 <-- look here for status

;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 4


;; QUESTION SECTION:

;www.mydomain.com. IN A



;; ANSWER SECTION:

www.mydomain.com. 54 IN A _IP_ <-- the answer


create your own dns
Thanks for your advice.

$ dig mydomain.com
Code:
; <<>> DiG 9.7.3 <<>> mydomain.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 63214
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 4

;; QUESTION SECTION:
;mydomain.com.			IN	A

;; ANSWER SECTION:
mydomain.com.		3120	IN	A	xxx.xxx.xxx.xxx (fixed ip)

;; AUTHORITY SECTION:
mydomain.com.		3120	IN	NS	ns25.domaincontrol.com.
mydomain.com.		3120	IN	NS	ns26.domaincontrol.com.

;; ADDITIONAL SECTION:
ns25.domaincontrol.com.	55420	IN	A	216.69.185.13
ns25.domaincontrol.com.	55420	IN	AAAA	2607:f208:206::d
ns26.domaincontrol.com.	52969	IN	A	208.109.255.13
ns26.domaincontrol.com.	55420	IN	AAAA	2607:f208:302::d

;; Query time: 18 msec
;; SERVER: 192.168.0.1#53(192.168.0.1)
;; WHEN: Thu Feb  9 19:16:44 2012
;; MSG SIZE  rcvd: 185

$ dig ser01.mydomain.com (server hostname)
Code:
; <<>> DiG 9.7.3 <<>> ser01.mydomain.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41616
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 4

;; QUESTION SECTION:
;ser01.mydomain.com.	IN	A

;; ANSWER SECTION:
ser01.mydomain.com. 3600	IN	A	xxx.xxx.xxx.xxx (fixed ip)

;; AUTHORITY SECTION:
mydomain.com.		3001	IN	NS	ns25.domaincontrol.com.
mydomain.com.		3001	IN	NS	ns26.domaincontrol.com.

;; ADDITIONAL SECTION:
ns25.domaincontrol.com.	55301	IN	A	216.69.185.13
ns25.domaincontrol.com.	55301	IN	AAAA	2607:f208:206::d
ns26.domaincontrol.com.	52850	IN	A	208.109.255.13
ns26.domaincontrol.com.	55301	IN	AAAA	2607:f208:302::d

;; Query time: 52 msec
;; SERVER: 192.168.0.1#53(192.168.0.1)
;; WHEN: Thu Feb  9 19:18:43 2012
;; MSG SIZE  rcvd: 197
Both above "ANSWER: 1"


On host of VirtualBox

$ cat /etc/hosts
Code:
127.0.0.1	ub1004	localhost.localdomain	localhost
::1	ub1004	localhost6.localdomain6	localhost6
#::1	ub1004	localhost6.localdomain6	localhost6
192.168.0.218	ser01.mydomain.com	ser01

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
sales@mail.mydomain.com is on MySQL mail database table.

B.R.
satimis
 
Old 02-09-2012, 05:36 AM   #5
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by deep27ak View Post
Postfix is a smtp server and is used to send mails and if you are unable to receive mails configure a dovecot server for pop3 and imap
Whether you meant adding dovecot server for pop3 to receive mails?? Let Postfix to send mails? Thanks

Quote:
secondly your DNS is not replying to mail.mydomain so check your DNS.
mail.mydomain is only on domains table of "mail" database.

B.R.
satimis
 
Old 02-09-2012, 05:42 AM   #6
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
I meant postfix is a smtp server so just configuring your machine with postfix will not help you in receiving mails

configure a dovecot server for the same
 
Old 02-09-2012, 06:14 AM   #7
fritz001
Member
 
Registered: Aug 2004
Posts: 176

Rep: Reputation: 18
Quote:
Originally Posted by deep27ak View Post
I meant postfix is a smtp server so just configuring your machine with postfix will not help you in receiving mails

configure a dovecot server for the same
SMTP = protocol for SEND/RECEIVE MESSAGES !!

unable to receive mails means miss-config postfix

post here main.config + master.config
 
Old 02-09-2012, 06:36 AM   #8
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by fritz001 View Post
SMTP = protocol for SEND/RECEIVE MESSAGES !!

unable to receive mails means miss-config postfix

post here main.config + master.config
$ cat /etc/postfix/main.cf
Code:
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = /usr/share/doc/postfix

# TLS parameters
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = ser01.mydomain.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = ser01.mydomain.com, localhost, localhost.localdomain
relayhost = 
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
html_directory = /usr/share/doc/postfix/html
virtual_alias_domains = 
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
virtual_create_maildirsize = yes
virtual_maildir_extended = yes
virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = "The user you are trying to reach is over quota."
virtual_overquota_bounce = yes
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings

$ cat /etc/postfix/master.cf
Code:
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       -       -       -       smtpd

#628       inet  n       -       -       -       -       qmqpd
pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       -       300     1       oqmgr
tlsmgr    unix  -       -       -       1000?   1       tlsmgr
rewrite   unix  -       -       -       -       -       trivial-rewrite
bounce    unix  -       -       -       -       0       bounce
defer     unix  -       -       -       -       0       bounce
trace     unix  -       -       -       -       0       bounce
verify    unix  -       -       -       -       1       verify
flush     unix  n       -       -       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
proxywrite unix -       -       n       -       1       proxymap
smtp      unix  -       -       -       -       -       smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       -       -       -       smtp
        -o smtp_fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
retry     unix  -       -       -       -       -       error
discard   unix  -       -       -       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       -       -       -       lmtp
anvil     unix  -       -       -       -       1       anvil
scache    unix  -       -       -       -       1       scache

# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}

# ====================================================================
#
# See the Postfix UUCP_README file for configuration details.
#
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix  -       n       n       -       2       pipe
  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman   unix  -       n       n       -       -       pipe
  flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  ${nexthop} ${user}

amavis unix - - - - 2 smtp
        -o smtp_data_done_timeout=1200
        -o smtp_send_xforward_command=yes

127.0.0.1:10025 inet n - - - - smtpd
        -o content_filter=
        -o local_recipient_maps=
        -o relay_recipient_maps=
        -o smtpd_restriction_classes=
        -o smtpd_client_restrictions=
        -o smtpd_helo_restrictions=
        -o smtpd_sender_restrictions=
        -o smtpd_recipient_restrictions=permit_mynetworks,reject
        -o mynetworks=127.0.0.0/8
        -o strict_rfc821_envelopes=yes
        -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
        -o smtpd_bind_address=127.0.0.1

satimis
 
Old 02-09-2012, 07:07 AM   #9
pix9
Member
 
Registered: Jan 2010
Location: Mumbai, India
Distribution: ArchLinux, Fedora 24, Centos 7.0
Posts: 177

Rep: Reputation: 19
@deep27ak dovecot is configured in case you want to enable clients to fetch mails from mail server

@TS it seem your host is not getting resolved when you dig for mail.domain it must reply you with proper answer i.e. it must reply then IP address for your mail.domain it's only then mails can reach your server. make sure DNS is giving reply i.e. ANSWER SECTION when you make a query for host name of your mail server. and as far as your configuration file(/etc/postfix/main.cf) is concern it seems ok to me.
ahh wait it seems you have already fixed DNS part! sorry you may ignore above part.

another thing I've seen that you have enabled "relayhost =" directive I think it is not necessary in case you want your server to accept mails. To the best of my knowledge relayhost is used for forwarding mails to another mail server you might try commenting out that line.

Thank you
regards

Last edited by pix9; 02-09-2012 at 07:13 AM.
 
Old 02-09-2012, 08:11 AM   #10
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by pix9 View Post
@deep27ak dovecot is configured in case you want to enable clients to fetch mails from mail server

@TS it seem your host is not getting resolved when you dig for mail.domain it must reply you with proper answer i.e. it must reply then IP address for your mail.domain it's only then mails can reach your server. make sure DNS is giving reply i.e. ANSWER SECTION when you make a query for host name of your mail server. and as far as your configuration file(/etc/postfix/main.cf) is concern it seems ok to me.
ahh wait it seems you have already fixed DNS part! sorry you may ignore above part.

another thing I've seen that you have enabled "relayhost =" directive I think it is not necessary in case you want your server to accept mails. To the best of my knowledge relayhost is used for forwarding mails to another mail server you might try commenting out that line.

Thank you
regards
Hi,

Thanks for your advice. Tried it.

1) comment out the line "relayhost="
2) restart /etc/postfix

sent a mail to sales@mydomain.com. Failed

$ tail /var/log/mail.log
Code:
Feb  9 21:25:38 ser01 postfix/qmgr[1564]: 3B0C0A009A: from=<somebody@yahoo.com>, size=2966, nrcpt=1 (queue active)
Feb  9 21:25:38 ser01 postfix/smtp[2037]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Feb  9 21:25:38 ser01 postfix/smtp[2038]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Feb  9 21:25:38 ser01 postfix/smtp[2037]: 3B99CA00C6: to=<sales@mydomain.com>, relay=none, delay=75296, delays=75296/0/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
Feb  9 21:25:38 ser01 postfix/smtp[2038]: 3B0C0A009A: to=<sales@mydomain.com>, relay=none, delay=41991, delays=41991/0.01/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
Feb  9 21:40:38 ser01 postfix/qmgr[1564]: EFF88A0097: from=<somebody@yahoo.com>, size=2970, nrcpt=1 (queue active)
Feb  9 21:40:38 ser01 postfix/smtp[2051]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Feb  9 21:40:38 ser01 postfix/smtp[2051]: EFF88A0097: to=<sales@mydomain.com>, relay=none, delay=8811, delays=8811/0/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
Feb  9 21:47:05 ser01 postfix/master[1415]: terminating on signal 15
Feb  9 21:47:06 ser01 postfix/master[2296]: daemon started -- version 2.7.0, configuration /etc/postfix

Sent another mail to sales@ser01.mydomain.com. Still failed

$ tail /var/log/mail.log
Code:
Feb  9 21:49:00 ser01 postfix/smtpd[2333]: connect from nm27-vm0.bullet.mail.sp2.yahoo.com[98.139.91.232]
Feb  9 21:49:01 ser01 postfix/smtpd[2333]: 4ADEBA00A0: client=nm27-vm0.bullet.mail.sp2.yahoo.com[98.139.91.232]
Feb  9 21:49:01 ser01 postfix/cleanup[2339]: 4ADEBA00A0: message-id=<1328795278.12111.YahooMailNeo@web113216.mail.gq1.yahoo.com>
Feb  9 21:49:01 ser01 postfix/qmgr[2298]: 4ADEBA00A0: from=<somebody@yahoo.com>, size=2967, nrcpt=1 (queue active)
Feb  9 21:49:01 ser01 postfix/smtp[2340]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Feb  9 21:49:01 ser01 postfix/smtp[2340]: 4ADEBA00A0: to=<sales@mydomain.com>, relay=none, delay=0.89, delays=0.89/0/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
Feb  9 21:49:02 ser01 postfix/smtpd[2333]: disconnect from nm27-vm0.bullet.mail.sp2.yahoo.com[98.139.91.232]
Feb  9 21:50:53 ser01 postfix/smtpd[2376]: connect from nm21-vm4.bullet.mail.ne1.yahoo.com[98.138.91.181]
Feb  9 21:50:54 ser01 postfix/smtpd[2376]: NOQUEUE: reject: RCPT from nm21-vm4.bullet.mail.ne1.yahoo.com[98.138.91.181]: 554 5.7.1 <sales@ser01.mydomain.com>: Relay access denied; from=<somebody@yahoo.com> to=<sales@ser01.mydomain.com> proto=SMTP helo=<nm21-vm4.bullet.mail.ne1.yahoo.com>
Feb  9 21:50:54 ser01 postfix/smtpd[2376]: disconnect from nm21-vm4.bullet.mail.ne1.yahoo.com[98.138.91.181]
On domain register website

Code:
Host	Points to
@	xxx.xxx.xxx.xxx (fixed ip)
ser01	xxx.xxx.xxx.xxx (fixed ip)

CNAME (Alias)
Host	Points to
e	ser01.mydomain.com
email	ser01.mydomain.com
imap	imap.secureserver.net
pop	ser01.mydomain.com
smtp	ser01.mydomain.com
webmail	ser01.mydomain.com
www	@

MX (Mail Exchanger)
Priority	Host	Points
30		@	mailstore1.secureserver.net
20		@	smtp.secureserver.net
10		@	ser01.mydomain.com
Whether change
Code:
email	ser01.mydomain.com
to
Code:
email	mail.mydomain.com
OR
Code:
smtp	ser01.mydomain.com
to
Code:
smtp	mail.mydomain.com
can help? But I have to wait for 48hrs for the change to propagate.


Edit:

mysql> SELECT * from transport;
Code:
+-------------+-----------------------+
| domain      | transport             |
+-------------+-----------------------+
| mydomain.com | smtp:mail.mydomain.com |
+-------------+-----------------------+
1 row in set (0.00 sec)
mail.mydomain.com is on "transport" table


B.R.
satimis

Last edited by satimis; 02-09-2012 at 08:32 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can receive but not send e-mails. chacal99 Linux - Newbie 7 06-16-2013 10:17 AM
To restrict a user to send mails only to 3 e-mails IDs using postfix mail server sharath41 Linux - Newbie 2 07-21-2008 07:38 PM
I can't receive or send e-mails hangwi Linux - Server 1 10-15-2007 10:48 AM
Sendmai can send mails but unable to receive mails satimis Linux - Server 2 02-15-2007 09:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration