Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
alpine-conf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
18
Issues
18
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
alpine-conf
Commits
03384208
Commit
03384208
authored
Jan 08, 2021
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setup-mta: cleanup. use ask
parent
e5c17c73
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
setup-mta.in
setup-mta.in
+5
-7
No files found.
setup-mta.in
View file @
03384208
...
...
@@ -33,13 +33,11 @@ fi
res
=
while
[
"
$res
"
!=
"221"
]
;
do
echon
"Outgoing mail server? (e.g 'smtp.isp.com') [
$mailhub
] "
default_read mailhub
$mailhub
echon
"Test connection? (y/n) [y] "
default_read testconn
"y"
case
"
$testconn
"
in
[
Nn]
*
)
break
;;
esac
ask
"Outgoing mail server? (e.g 'smtp.isp.com')"
"
$mailhub
"
mailhub
=
"
$resp
"
if
!
ask_yesno
"Test connection? (y/n)"
y
;
then
break
fi
res
=
$(
echo
-e
"quit
\r\n
"
| nc
$mailhub
25 |
awk
'/^221/ {print $1}'
)
[
"x
$res
"
=
"x221"
]
&&
echo
"Connection to
$mailhub
is ok."
done
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment