LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-17-2008, 11:07 AM   #1
slozzy
Member
 
Registered: Mar 2008
Location: Edmonton
Distribution: Centos 5.2
Posts: 31

Rep: Reputation: 15
Get Postfix to relay on 3535 to GoDaddy??


I have a Virtualmin GPL server that I use for development. For one of the domains I would like to send all email through godaddy since they offer me relays on port 3535 or port 80. My ISP blocks port 25. I only want one virtual domain to do this. So I need to use SMTP AUTH, and there only seems to be a few lines in the config file to do and there is no need for SSL or TLS.

After spending a month working on this the past week, I'm posting for ideas, and its late and I'm getting desperate. This is my postconf -n and /etc/alias/transport.

Considering my latest maillogs - it looks like something major obvious is missing!

[HTML]
Mar 16 22:47:39 localhost postfix/pickup[26035]: 39A8A4B0C51: uid=48 from=<apache>
Mar 16 22:47:39 localhost postfix/cleanup[26063]: 39A8A4B0C51: message-id=<20080317044739.39A8A4B0C51@centosweb.to-be-relayed.com>
Mar 16 22:47:39 localhost postfix/qmgr[26036]: 39A8A4B0C51: from=<apache@to-be-relayed.com>, size=776, nrcpt=1 (queue active)
Mar 16 22:47:39 localhost postfix/local[26065]: 39A8A4B0C51: to=<slozzy@hotmail.com>, relay=local, delay=0.48, delays=0.34/0.06/0/0.08, dsn=5.1.1, status=bounced (unknown user: "slozzy")
Mar 16 22:47:39 localhost postfix/cleanup[26063]: 8BF134B0C53: message-id=<20080317044739.8BF134B0C53@centosweb.to-be-relayed.com>
Mar 16 22:47:39 localhost postfix/bounce[26066]: 39A8A4B0C51: sender non-delivery notification: 8BF134B0C53
Mar 16 22:47:39 localhost postfix/qmgr[26036]: 39A8A4B0C51: removed
Mar 16 22:47:39 localhost postfix/qmgr[26036]: 8BF134B0C53: from=<>, size=2617, nrcpt=1 (queue active)
Mar 16 22:47:39 localhost postfix/error[26067]: 8BF134B0C53: to=<myusernameatgodaddy@to-be-relayed.com>, orig_to=<apache@to-be-relayed.com>, relay=none, delay=0.11, delays=0.04/0.06/0/0.01, dsn=5.0.0, status=bounced (User unknown in virtual alias table)
Mar 16 22:47:39 localhost postfix/qmgr[26036]: 8BF134B0C53: removed
[/HTML]


Postconf -n:
Code:


[HTML]
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
best_mx_transport = local
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_list = *
default_transport = local
disable_dns_lookups = yes
home_mailbox = Maildir/
html_directory = no
mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME
mailbox_size_limit = 2147483648
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, mydomain1.tld, mydomain2.tld, mydomain3.tld, localhost, centosweb
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
relay_domains = $mynetworks
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sender_bcc_maps = hash:/etc/postfix/bcc
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination permit_inet_interfaces
smtpd_sasl_auth_enable = yes
smtpd_sender_restrictions = permit_mynetworks reject_unauth_destination permit_inet_interfaces
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_maps = hash:/etc/postfix/virtual
[/HTML]


/etc/postfix/transport:
Code:


[HTML]
mydomain1.tld *:local:
.mydomain1.tld *:local:
mydomain2.tld *:local:
.mydomain2.tld *:local:
mydomain3.tld *:local:
.mydomain3.tld *:local:
to-be-relayed.com smtp:smtpout.mymailserver.net:3535[/HTML]



I can post other pertinent information if anyone has ideas. It's on Centos 5.1. I hope someone can point me in the right direction!
 
Old 03-18-2008, 08:07 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
What exactly is your problem, but your relay_domains doesn't look right to me.

Have you tried a simple approach like

relayhost = mail.godaddy.com:3535
 
Old 03-18-2008, 08:30 PM   #3
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Question - are mydomain1.tld, etc. virtual domains? If so, they shouldn't be listed in mydestination
 
Old 03-19-2008, 12:29 AM   #4
slozzy
Member
 
Registered: Mar 2008
Location: Edmonton
Distribution: Centos 5.2
Posts: 31

Original Poster
Rep: Reputation: 15
Hey thanks for your input. I replaced relay_domains to the actual to-be-relayed.com domain name. And relayhost i put in mail.godaddy.com:3535. All of the domains are virtual and I just want one to relay to godaddy. I can't spend a lot of time tonight but let you know how it goes tomorrow.thanks
 
  


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
Godaddy webmail & my postfix server hank43 Linux - General 3 10-10-2006 11:22 PM
postfix and relay shafey Linux - Networking 3 03-02-2006 11:50 AM
[postfix] allow relay from 1 ip narmida Linux - Software 3 12-01-2005 01:20 PM
Postfix as a mail relay (getting relay access denied) hypexr Linux - Software 3 09-13-2005 08:15 PM
relay postfix SkYzOpReNiCk Linux - Networking 5 01-22-2002 11:32 AM


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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration