LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-20-2012, 01:22 AM   #1
RajeshThakur
LQ Newbie
 
Registered: Aug 2011
Posts: 9

Rep: Reputation: Disabled
Can send mail but Not able to receive mail. Postfixadmin, dovecot, postfix setup


Hi,

I have configured postfixadmin for virtual user as per http://www.campworld.net/thewiki/pmw...VirtMailServer

I am able to send mail but cannot received.

Also the log does'nt show any error which is helpful,

Apr 19 13:39:00 mail dovecot: imap-login: Login: user=<user@domain.com>, method=PLAIN, rip=::ffff:192.168.0.5, lip=::ffff:192.168.0.5, secured
Apr 19 13:38:58 mail dovecot: IMAP(user@domain.com): Disconnected: Logged out


Rajesh
 
Old 04-20-2012, 04:10 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,386

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
can define what you actually mean and know by "recieved"? is this smtp level or are you expecting the imap leg of the process to also be covered here? is postfix suitably configured to listen to wherever incoming mail would come from? config files would help.
 
Old 04-20-2012, 04:48 AM   #3
RajeshThakur
LQ Newbie
 
Registered: Aug 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
Can send mail but Not able to receive mail. Postfixadmin, dovecot, postfix setup

Quote:
Originally Posted by acid_kewpie View Post
can define what you actually mean and know by "recieved"? is this smtp level or are you expecting the imap leg of the process to also be covered here? is postfix suitably configured to listen to wherever incoming mail would come from? config files would help.

Please find MY Postfix config

[root@host ~]# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
delay_warning_time = 4
disable_vrfy_command = yes
html_directory = no
inet_interfaces = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost
mydomain = domain.com (real domain)
myhostname = host.domain.com
mynetworks = 192.168.0.0/16, 127.0.0.0/24, 69.239.170.72/29
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.2.2/README_FILES
recipient_delimiter = +
relay_domains = $mydestination
sample_directory = /usr/share/doc/postfix-2.2.2/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_non_fqdn_hostname
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, reject_non_fqdn_recipient, reject_unknown_recipient_domain
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = reject_non_fqdn_sender, reject_unknown_sender_domain
smtpd_tls_CAfile = /etc/postfix/ssl/smtpd.pem
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.pem
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_alias_maps.cf, regexp:/etc/postfix/virtual_regexp
virtual_gid_maps = static:89
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_domains_maps.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_mailbox_maps.cf
virtual_minimum_uid = 89
virtual_transport = virtual
virtual_uid_maps = static:89


I have configure gmail id mailbox and fetchmail in postfixadmin and am sending mail to myself from webmail, the same is received on gmail id userx@gmail.com but not on my locally hosted mailserver.



Rajesh
 
Old 04-20-2012, 06:34 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,386

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
fetchmail? Where did that come into the equation from?? Again, what *specific* piece of this is not working? If fetchmail is now hurled into the equation, what happens when it runs? how is that configured?
 
Old 04-20-2012, 07:46 AM   #5
RajeshThakur
LQ Newbie
 
Registered: Aug 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
fetchmail? Where did that come into the equation from?? Again, what *specific* piece of this is not working? If fetchmail is now hurled into the equation, what happens when it runs? how is that configured?
Hi,

According to the link http://www.campworld.net/thewiki/pmw...VirtMailServer

In postfixadmin menu domain name, mailbox, fetchmail

Admin List
Admin List
New Admin
Domain List
Domain List
New Domain
Virtual List
Virtual List
Add Mailbox
Add Alias
Add Alias Domain
Fetch Email
Fetch Email
New entry
Send Email
Send Email
Broadcast message
Password
Backup
View Log
Logout

I have setup the domain name and mailbox and also configure fetchmail to pull mail from gmail id.


Fetch Email
Mailbox: user@gmail.com Local mailbox
Server: pop.gmail.com Remote Server
Auth Type: any Mostly 'password'
User: user@gmail.com Remote User
Password: passwd Remote Password
Folder: Remote Folder
Poll: 10 Poll every ... minutes
Fetch All: Retrieve both old (seen) and new messages
Keep: yes Keep retrieved messages on the remote mailserver
Protocol: pop Protocol to use
SSL active: yes SSL encryption




Rajesh
 
Old 04-20-2012, 07:48 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,386

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
I've zero knowledge of this admin panel, so I can't help you if that's the only interaction you're having with it. if you run fetchmail, what actually happens?
 
Old 04-20-2012, 08:03 AM   #7
RajeshThakur
LQ Newbie
 
Registered: Aug 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
I've zero knowledge of this admin panel, so I can't help you if that's the only interaction you're having with it. if you run fetchmail, what actually happens?
Thanks for info,

Can u pls guide me,

I have to setup a local mail server with multiple domain names like gmail.com, hotmail.com and example.com.

User will login thru webmail locally and send receive emails.

All Mails of all domain will be on local mail server.


Rajesh
 
Old 04-20-2012, 08:05 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,386

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
I can't "guide" you. I've asked you to investigate fetchmail, which appears to be the right thing to do based on what you're attempting to describe. If you are refusing to do that, I can't help you.
 
Old 04-20-2012, 08:27 AM   #9
RajeshThakur
LQ Newbie
 
Registered: Aug 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
I can't "guide" you. I've asked you to investigate fetchmail, which appears to be the right thing to do based on what you're attempting to describe. If you are refusing to do that, I can't help you.
Ok will try to do that.

But as you can see, according to the link http://www.campworld.net/thewiki/pmw...VirtMailServer

there is nothing mention of fetchmail install or configuration in this article.


Rajesh
 
Old 04-20-2012, 08:31 AM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,386

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
WTF?? **YOU** mentioned fetchmail in the first place!
 
  


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't send/receive mail using Postfix/Dovecot on CentOS 5 sh4ka Linux - Newbie 4 04-20-2011 08:12 AM
Mail Server with : Postfix,dovecot. (Can send email, but can't receive email from internet mail) cparapat Linux - Server 1 08-16-2010 12:57 AM
Postfix-dovecot cannot receive mail coad Linux - Server 3 06-03-2009 11:59 PM
postfix (cant send or receive mail) madfed Linux - Server 45 08-07-2008 03:51 AM
LXer: Debian Mail Server Setup with Postfix + Dovecot + SASL + Squirrel Mail LXer Syndicated Linux News 0 03-12-2008 10:50 PM


All times are GMT -5. The time now is 09:46 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration